Advertisement
Aha2Y

Untitled

Apr 2nd, 2012
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  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. print soup
  7. if 'ID' in soup:
  8.    print("yes")
  9. else:
  10.    print("no")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement