Revision: 2576
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 12, 2007 08:14 by abhiomkar
Initial Code
# # Get Statistics from Del.icio.us for a given URL # Author: Abhinay Omkar < abhiomkar AT gmail.com > # # GPLed import re,urllib2,sys url = sys.argv[1] print "Fetching..." try: # How many did tag the url... raw = urllib2.urlopen("http://del.icio.us/url/check?url="+url).read() URL = re.compile(r'<input name="url" size="30" value="(.*)"/>').search(raw).group()[35:-3] print print "URL: "+URL, print "("+re.compile(r'this url has been saved by (.*) people').search(raw).group()+")" # list tags print "Tags :", for tag in re.compile(r'<a href="/tag/(.*)" class="').findall(raw): print tag, except: print print "Failed to fetch "+url+". Or no one has tagged it."
Initial URL
Initial Description
Initial Title
Check del.icio.us link
Initial Tags
python
Initial Language
Python