# By Brian Gross # # Co editor Liz Henry # # 4/19/11 # url = raw_input('Please enter a website url: ') x = raw_input('Please enter a search word: ') import urllib var_html = urllib.urlopen(url).read() print var_html if x in var_html: print x,'was found in the webpage' # http://en.wikibooks.org/wiki/Python_Programming/Internet # how about this brian (I am too lazy to enter the url every time) -- liz # url = raw_input('Please enter a website url: ') url = "http://news.ycombinator.com/news" x = raw_input('Please enter a search word: ') import urllib var_html = urllib.urlopen(url).read() # print var_html if x in var_html: print x,'was found in the webpage'