@@ -0,0 +1,883 @@
+%22%22%22query_wiki.py:%0A%0A    Query wikipedia about a term.%0A%0A%22%22%22%0A%0A__author__           = %22Dilawar Singh%22%0A__copyright__        = %22Copyright 2017-, Dilawar Singh%22%0A__version__          = %221.0.0%22%0A__maintainer__       = %22Dilawar Singh%22%0A__email__            = %22dilawars@ncbs.res.in%22%0A__status__           = %22Development%22%0A%0Aimport nltk%0Atry:%0A    from nltk.corpus import stopwords%0Aexcept Exception as e:%0A    nltk.download( 'stopwords' )%0A%0Afrom nltk.corpus import stopwords%0Aimport sys%0Aimport os%0Afrom wikiapi import WikiApi%0A%0Awiki_ = WikiApi( )%0Acommon_ = set( stopwords.words( 'english' ) )%0A%0Adef main( ):%0A    query = sys.argv%5B1%5D%0A    print( 'Searching for %25s' %25 query )%0A    if query in common_:%0A        print( 'Very common word' )%0A        return ''%0A%0A    res = wiki_.find( query )%0A    if len(res) %3E 1:%0A        art = wiki_.get_article( res%5B0%5D )%0A        print(art.url)%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Wikify a given html text.