You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tool I am developing I needed to be able to input different google's to search so i came up with this simple hack
class GoogleSearch(object):
....
def init(self, query, tld, random_agent=False, debug=False, lang="en", re_search_strings=None):
self.query = query
self._tld = tld
You can then specify a different google by typing
GoogleSearch("keywords", tld="co.uk")
The text was updated successfully, but these errors were encountered:
Found in a comment in the blog: http://www.catonmat.net/c/3011
Simple hack to use more than one google...
In the tool I am developing I needed to be able to input different google's to search so i came up with this simple hack
class GoogleSearch(object):
....
def init(self, query, tld, random_agent=False, debug=False, lang="en", re_search_strings=None):
self.query = query
self._tld = tld
You can then specify a different google by typing
GoogleSearch("keywords", tld="co.uk")
The text was updated successfully, but these errors were encountered: