class PullSuggestions(SGMLParser):

    def reset(self):
        SGMLParser.reset(self)
self.suggestions = []
self.queries = []

def start_suggestion(self, attrs):
    for a in attrs:
        if a[0] == 'data':
            self.suggestions.append(a[1])

def start_num_queries(self, attrs):
    for a in attrs:
        if a[0] == 'int':
            self.queries.append(a[1])
base_query = ''
base_query += '%s'
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for letter in alphabet:
    q = base_query % letter
query = urllib.parse.urlencode({'q': q})
url = 'http://google.com/complete/search?output=toolbar&%s' % query
res = urllib.request.urlopen(url)
parser = PullSuggestions()
parser.feed(res.read())
parser.close()
for i in range(0, len(parser.suggestions)):
    pass
Существует ли API Google Insights?