上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页

2020年8月28日

不定长参数

摘要: 阅读全文

posted @ 2020-08-28 14:43 袁佳佳 阅读(115) 评论(0) 推荐(0) 编辑

2020年8月14日

设置管理员的 蘑菇丁日报 周报、月报

摘要: import sslimport jsonimport urllib#规避警告context = ssl._create_unverified_context()# 登陆以后去访问from requests import Request,Sessionclass Mogu(): def get_lo 阅读全文

posted @ 2020-08-14 18:02 袁佳佳 阅读(3921) 评论(0) 推荐(0) 编辑

2020年8月13日

访问个人主页、蘑菇丁、使用:import urllib.request

摘要: import sslimport json#使用urllib 去访问页面import urllib.request as ur#规避警告context = ssl._create_unverified_context()#登录函数def Login(info_data): # 把字典info_dat 阅读全文

posted @ 2020-08-13 16:48 袁佳佳 阅读(377) 评论(0) 推荐(0) 编辑

2020年8月12日

使用requests访问、登录蘑菇丁

摘要: import uuidimport requestsimport jsonclass Mogu(): def wakaka(self): self.headers = {'Content-Type': 'application/json; charset=UTF-8'} self.payload = 阅读全文

posted @ 2020-08-12 15:11 袁佳佳 阅读(925) 评论(1) 推荐(0) 编辑

UUID

摘要: UUID的使用 https://blog.csdn.net/qq_40942329/article/details/79076084?biz_id=102&utm_term=%E7%88%AC%E8%99%AB%E7%A2%B0%E5%88%B0uuid&utm_medium=distribute. 阅读全文

posted @ 2020-08-12 14:28 袁佳佳 阅读(156) 评论(0) 推荐(0) 编辑

2020年8月11日

爬虫经典案例

摘要: 经典案例网址 https://zhuanlan.zhihu.com/p/25711916 案例 阅读全文

posted @ 2020-08-11 18:54 袁佳佳 阅读(422) 评论(0) 推荐(0) 编辑

selenium 获取 cookies, 然后登录

摘要: 相信很多python学习者都和我一样在刚开始学习爬虫时,对见到的网站都有种跃跃欲试的冲动,像豆瓣电影、电影天堂以及各类壁纸写真图片网站的等等,但这些都是不需要登陆账号就可以直接请求解析网页获取资源链接的,如果遇到需要登陆账号的网站时就不行了。这个时候小编就及时出来解决大家的问题,给大家准备了一份模拟 阅读全文

posted @ 2020-08-11 17:50 袁佳佳 阅读(1584) 评论(0) 推荐(0) 编辑

用chrome浏览器登录以后 手动找到cookie、加到自己的python代码中

摘要: 1、登录csdn网站以后 import requestsfrom bs4 import BeautifulSoup cookie = """ 把cookie放到这里 """ header = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x 阅读全文

posted @ 2020-08-11 14:49 袁佳佳 阅读(479) 评论(0) 推荐(0) 编辑

2020年8月10日

使用 urllib.request 来访问蘑菇丁、登录

摘要: import sslimport json#使用urllib 去访问页面import urllib.request as ur#规避警告context = ssl._create_unverified_context()# 登录函数def Login(info_data): # 把字典info_da 阅读全文

posted @ 2020-08-10 16:23 袁佳佳 阅读(600) 评论(0) 推荐(0) 编辑

import json 的用法

摘要: >>> import json>>> dict1 = {"age": "12"}>>> json_info = json.dumps(dict1) #字典转成字符串>>> >>> json_info'{"age": "12"}'>>> >>> >>> dict1 = json.loads(json_ 阅读全文

posted @ 2020-08-10 14:24 袁佳佳 阅读(2858) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页

导航