摘要: # import os import requests from bs4 import BeautifulSoup # 登陆, 模仿用户浏览器 r1 = requests.get( # 要爬取的博客圆页面 url='https://zzk.cnblogs.com/s/blogpost?Keywords=blog%3aaronthon%201&pageindex=9', #... 阅读全文
posted @ 2018-04-23 11:09 aaronthon 阅读(132) 评论(0) 推荐(0) 编辑
摘要: # import os import requests from bs4 import BeautifulSoup r1 = requests.get( url='http://jandan.net/', # 浏览器的信息 headers={ 'user-agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleW... 阅读全文
posted @ 2018-04-23 10:11 aaronthon 阅读(153) 评论(0) 推荐(0) 编辑