All pastes #2048332 Raw Edit

Mine

public text v1 · immutable
#2048332 ·published 2011-04-19 17:14 UTC
rendered paste body
# 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'