Changeset 35
- Timestamp:
- Jul 8, 2007, 8:35:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plinkpot/linkpot
r34 r35 3 3 import urllib 4 4 import re 5 6 7 def check_link(url): 8 # Get the URL to check it "works" 9 urllib.urlopen(url) 5 10 6 11 pot_re = re.compile(r'Your quick url is <a href="(http://linkpot.net/.*?)"') … … 15 20 import sys 16 21 try: 22 check_link(sys.argv[1]) 17 23 print linkpot(sys.argv[1]) 18 24 except Exception:
Note: See TracChangeset
for help on using the changeset viewer.