摘要: request中文API https://requests.readthedocs.io/zh_CN/latest/ 阅读全文
posted @ 2020-07-04 21:28 SunCY 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 登陆的方式 1.实例化session,使用session发送post请求,在使用它获取登陆后的页面 # coding=utf-8 import requests session = requests.session() post_url = "http://www.renren.com/PLogin 阅读全文
posted @ 2020-07-04 17:30 SunCY 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 找一个免费IP的网站 # coding=utf-8 import requests proxies = {"http":"http://114.234.80.188:80"}#就代理填到这里 headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Int 阅读全文
posted @ 2020-07-04 15:57 SunCY 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 要爬取的网站:http://fy.iciba.com/ https://blog.csdn.net/weixin_43808690/article/details/87886075 原文链接 代码: from urllib import request,parse import json class 阅读全文
posted @ 2020-07-04 14:26 SunCY 阅读(299) 评论(0) 推荐(0) 编辑