Advertisement
Aha2Y

Untitled

Apr 2nd, 2012
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import urllib
  2. from BeautifulSoup import BeautifulSoup
  3.  
  4. f = urllib.urlopen("http://rscript.org/lookup.php?type=fml")
  5. soup = BeautifulSoup(f)
  6. if "text" in soup:
  7.    print "yes"
  8. else:
  9.    print "no"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement