#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()
时间: 2025-01-15 19:27:11