检查del.icio.us公司链接
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了检查del.icio.us公司链接相关的知识,希望对你有一定的参考价值。
# # 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 "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 "Failed to fetch "+url+". Or no one has tagged it."
以上是关于检查del.icio.us公司链接的主要内容,如果未能解决你的问题,请参考以下文章
轻松地播放mp3文件直接在您的网站或博客使用del.icio.us公司戏耍者
JavaScript del.icio.us Bookmarklet