These are my go-to libraries for Python data crunching.
It searches online using Google Search API's for some queries. Queries are n-grams extracted from the source txt file. Resulting URL, matched contents are checked for similarity with given text query.