摘要: 网页的图片大致是用Image导入的,使用的是相对路径,例如通过匹配可以获取image/bg.jpg,与页面地址组合可以得到图片的地址除了直接引入的图片,还有通过CSS,HTML引入的图片,也需要处理# -*- coding: utf-8 -*-import urllib, httplib, urlparseimport sysimport redef httpExists(url): host, path = urlparse.urlsplit(url)[1:3] if ':' in host: # port specified, try to use it ... 阅读全文
posted @ 2013-08-24 15:43 看天空变黑 阅读(1808) 评论(7) 推荐(2) 编辑