DIGIT-ARC read-only archive · snapshot: July 23, 2026

A python script to get Hot Google Trends

2 posts · originally from https://geek.digit.in/community/threads/a-python-script-to-get-hot-google-trends.129257/

G
gopi_vbboy Original post #1
Jul 8, 2010 at 7:46 PM
This a sample python web scrap to get updated HOt google trends searches

you need beautiful soup installed

Code:
#For personal purpose only

from BeautifulSoup import BeautifulSoup
import urllib2,re

cont=urllib2.urlopen('*www.google.com/trends/hottrends?sa=X')
#use google.co.in for india searches

soup = BeautifulSoup(cont)

col= soup.findAll('a',href=re.compile('.+sa=X'))

for x in col:
    print x.string
L
Jul 9, 2010 at 12:26 AM
never got hang of python or for that matter any language above C/C++