SHOW:
|
|
- or go back to the newest paste.
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 |
6 | + | if "text" in soup: |
7 | - | if 'ID' in soup: |
7 | + | print "yes" |
8 | - | print("yes") |
8 | + | else: |
9 | - | else: |
9 | + | print "no" |