11 2017 档案

python反爬虫抓取基金应用
摘要:import reimport urllib.requestimport randomuser_agent = ["Mozilla/5.0 (Windows NT 10.0; WOW64)", 'Mozilla/5.0 (Windows NT 6.3; WOW64)', 'Mozilla/5.0 ( 阅读全文

posted @ 2017-11-14 23:24 888ewe 阅读(414) 评论(0) 推荐(0)

python反爬虫抓取
摘要:user_agent = ["Mozilla/5.0 (Windows NT 10.0; WOW64)", 'Mozilla/5.0 (Windows NT 6.3; WOW64)', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, 阅读全文

posted @ 2017-11-14 23:23 888ewe 阅读(219) 评论(0) 推荐(0)

python抓取股票数据
摘要:import urllib.requestimport redef getData(url): return urllib.request.urlopen(url).read().decode("gbk")def getPage(min,max): for page in range(min,max 阅读全文

posted @ 2017-11-14 23:22 888ewe 阅读(1003) 评论(0) 推荐(0)

python下载资源到本地
摘要:import urllib.requestimport os#下载资源到本地 url 网址 path 本地路径def downLoadPic(url,path): if not os.path.exists(path):#判断本地是否存在文件夹 os.makedirs(path) path=path 阅读全文

posted @ 2017-11-12 18:13 888ewe 阅读(278) 评论(0) 推荐(0)

python3抓取超链接
摘要:python3抓取超链接 阅读全文

posted @ 2017-11-07 23:49 888ewe 阅读(937) 评论(0) 推荐(0)

导航