python 资质 登录

import requests

headers = {
    "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
    }
cookies = "ShowIKnowMsg=e322621c-57bb-4dc1-9466-6fd2b1fa6177; _SYS_ENT_SGT_MENUID=lefttable24; _gscu_1716007719=11848343gcwf1d15; ASP.NET_SessionId=wwdj3b45jbhjnciwtei3vm45"
# 拆分cookie
cookies ={i.split("=")[0]:i.split("=")[1] for i in cookies.split(";")}
print(cookies)

diaoru = "http://js.shaanxi.gov.cn:9010/SXApp/EntApproveNew/EpmAddAndLost/SelectEmp.aspx?typeid=7&___t=0.33351777261035287"

url = "http://js.shaanxi.gov.cn:9010/SXApp/EntApproveNew/main/AppEmpListDR.aspx"
r = requests.get(url, cookies=cookies)
print(r.text)

你可能感兴趣的:(资质,python)