Python爬虫视频教程零基础小白到scrapy爬虫高手-轻松入门
https://item.taobao.com/item.htm?spm=a1z38n.10677092.0.0.482434a6EmUbbW&id=564564604865
requests模板太神奇
pdf和TXT文档都可以下载
# -*- coding: utf-8 -*- """ Created on Wed Mar 16 11:09:59 2016 @author: Administrator """ import requests,bs4,openpyxl,time,selenium url='http://down.bzwxw.com/05/GB%2010408.5-2000.pdf' index=0 res = requests.get(url, stream=True) playFile = open('test.pdf', 'wb') for chunk in res.iter_content(100000): playFile.write(chunk) playFile.close()