2020年2月18日
摘要: s = request.session() print(s.cookies) # 登录 r1 = s.post(url_1=...) print(s.cookies) 可以直接放完下一个接口 r2 = s.post(url_2=...) print(s.cookies) #若要跳过登录,直接往s里面 阅读全文
posted @ 2020-02-18 17:16 大侠修仙 阅读(67) 评论(0) 推荐(0) 编辑
  2020年1月20日
摘要: 若cookie存在于url上 cc= "cookie=aaaaaaaaaaaaaaaaaa" 先转换为字典格式: c = {} a = cc.split("=") c[a[0]] = a[1] 此时: c = { "cookie":"aaaaaaaaaaaaaaaaaa" } r=requests. 阅读全文
posted @ 2020-01-20 18:54 大侠修仙 阅读(69) 评论(0) 推荐(0) 编辑
摘要: import re r = requests.post(url) res = r.content.decode("utf_8") result = re.findall("a(.+?)c",res) 有括号或者逗号,要加转义\ 返回的是个list print(result[0]) 阅读全文
posted @ 2020-01-20 17:42 大侠修仙 阅读(105) 评论(0) 推荐(0) 编辑
摘要: import requests import urllib3 urllib3.disable_warnings() 忽略警告 url = "url" h = { "content-Type":"application/json" "token":"token" } par={ "a":"a" } b 阅读全文
posted @ 2020-01-20 16:17 大侠修仙 阅读(123) 评论(0) 推荐(0) 编辑
摘要: import requests import urllib3 urllib3.disable_warnings() 忽略警告 url = "url" h = { "Cookie" : "cookie" } r = request.get(url,headers=h,verify=False) 不去校 阅读全文
posted @ 2020-01-20 15:31 大侠修仙 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 环境安装:1、确保pip正常cmd命令 pip 返回正常 2、安装requestspip install requests确认安装成功 pip list,若成功,则展示出requests 3、卸载requests:pip uninstall requests 阅读全文
posted @ 2020-01-20 11:58 大侠修仙 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: java -jar jenkins.war 启动jenkins默认地址:http://localhost:880admin 17d4ffe928fe4092ac14fe069c4079d3 jenkins内部测试报告样式错乱解决方法 1、启动 java -Dhudson.model.Director 阅读全文
posted @ 2020-01-20 11:55 大侠修仙 阅读(148) 评论(0) 推荐(0) 编辑
摘要: $ git config --global user.name $ git config --global user.email 创建一个新的目录$ mkdir learngit$ cd learngit$ pwd/Users/michael/learngit创建一个新的仓库$ git initIn 阅读全文
posted @ 2020-01-20 11:53 大侠修仙 阅读(133) 评论(0) 推荐(0) 编辑
  2019年3月30日
摘要: / 一个斜杠表示绝对路径 // 两个斜杠表示根目录。.// 前面加不加点都行 .//* 星号表示所有标签 .. 两个点表示查找父节点 .//*[text()="abcdefg"] text() 可以用来查找所有文本,没有@ 同一个父亲下的所有子节点,可以用索引,从1开始 不同父亲下的所有子节点,可以 阅读全文
posted @ 2019-03-30 11:29 大侠修仙 阅读(161) 评论(0) 推荐(0) 编辑
  2019年3月29日
摘要: 以我现在部门的一个项目部署为例,大致的捋了一捋, 1.确定下系统,现在linux居多,我们用是centos7。 2.安装服务器,类似于什么Apache啊,我们用的是tomcat。 3.安装jdk,配置环境变量。这个就没什么可说的了。 4.安装数据库。看用的什么数据库咯。然后配置下数据库,这个去百度好 阅读全文
posted @ 2019-03-29 18:25 大侠修仙 阅读(191) 评论(0) 推荐(0) 编辑