You're viewing a comment by Andrew and its responses.

Andrew Permalink
May 21, 2010, 22:35

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="")

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cloud_139": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.