brady-wang
#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()

 

分类:

技术点:

相关文章:

  • 2021-09-18
  • 2022-02-19
  • 2021-10-25
  • 2022-01-07
  • 2021-11-30
  • 2022-12-23
  • 2021-11-29
  • 2021-09-18
猜你喜欢
  • 2021-05-21
  • 2021-10-16
  • 2021-06-04
  • 2021-12-10
  • 2021-09-30
  • 2022-01-01
  • 2021-11-09
相关资源
相似解决方案