1 Star 0 Fork 0

ljn / nssas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
html_downloader.py 301 Bytes
一键复制 编辑 原始数据 按行查看 历史
ljn 提交于 2017-09-22 18:15 . no message
#coding=utf-8
import urllib2
class HtmlDownloader(object):
def download(self,url): #返回下载好的url的内容
if url is None:
return None
response = urllib2.urlopen(url)
if response.getcode()!= 200:
return None
return response.read()
Python
1
https://gitee.com/liujunnan123/nssas.git
git@gitee.com:liujunnan123/nssas.git
liujunnan123
nssas
nssas
master

搜索帮助