摘要:
第十五章:Python和万维网1:屏幕抓取——屏幕抓取是程序下载网页并且提取信息的过程from urllib import requestimport rep = re.compile('<h3><a .*?><a .*? href="(.*?)">(.*?)</a>')text = request.urlopen('http://python.org/community/jobs').read()for url, name in p.findall(str(text)): print(' 阅读全文
posted @ 2013-02-22 00:53
cateatmycode
阅读(629)
评论(0)
推荐(0)