摘要:
若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
大侠修仙
阅读(73)
评论(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
大侠修仙
阅读(109)
评论(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
大侠修仙
阅读(131)
评论(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
大侠修仙
阅读(359)
评论(0)
推荐(0)
摘要:
环境安装:1、确保pip正常cmd命令 pip 返回正常 2、安装requestspip install requests确认安装成功 pip list,若成功,则展示出requests 3、卸载requests:pip uninstall requests 阅读全文
posted @ 2020-01-20 11:58
大侠修仙
阅读(1302)
评论(0)
推荐(0)
摘要:
java -jar jenkins.war 启动jenkins默认地址:http://localhost:880admin 17d4ffe928fe4092ac14fe069c4079d3 jenkins内部测试报告样式错乱解决方法 1、启动 java -Dhudson.model.Director 阅读全文
posted @ 2020-01-20 11:55
大侠修仙
阅读(161)
评论(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
大侠修仙
阅读(137)
评论(0)
推荐(0)
浙公网安备 33010602011771号