摘要: from pachong.httpUtils.Http import HttPuTils from selenium import webdriver import unittest class Test_login(unittest.TestCase): ''' 登录接口测试 ''' # 创建参数 阅读全文
posted @ 2020-04-15 18:40 温余生 阅读(719) 评论(0) 推荐(0)
摘要: 1 header={} 2 header['User-Agent'] = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3314.0 Safari/537.36 SE 2 阅读全文
posted @ 2020-04-14 16:48 温余生 阅读(445) 评论(0) 推荐(0)
摘要: 网站配置代理服务与fiddler互通 ,添加代理 代理地址 本机ip 端口 8888 在fiddler 中 配置 抓取的网站地址, 以博客网为例 配置后即可抓取网站数据 注意 若返回的html 是乱码情况,可能是因为解压导致因此 选中decode 重新发送请求即可 阅读全文
posted @ 2020-04-14 16:46 温余生 阅读(566) 评论(0) 推荐(0)
摘要: 一 电脑端安装fiddler fiddler官方地址 https://www.telerik.com/download/fiddler 二 配置代理的相关信息 1 fiddler 2 配置iphone 的代理信息 3 在iphone的浏览器出下载fiddle的证书 url http://上次配置ip 阅读全文
posted @ 2020-04-08 10:44 温余生 阅读(211) 评论(0) 推荐(0)
摘要: 文件资料 代码中采用了 https://openpyxl.readthedocs.io 阅读全文
posted @ 2020-04-07 19:55 温余生 阅读(952) 评论(0) 推荐(0)