标签:class htm open sel 爬虫 ons odi etc response
#coding:utf8 import urllib2 __author__ = ‘wang‘ class HtmlDownloader(object): def download(self, url): if url is None: return None response = urllib2.urlopen(url) if response.getcode() != 200: return None return response.read()
爬虫5 html下载器 html_downloader.py
标签:class htm open sel 爬虫 ons odi etc response
原文地址:http://www.cnblogs.com/php-linux/p/6115815.html