test.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. import requests
  2. headers = {
  3. "Connection": "keep-alive",
  4. "Pragma": "no-cache",
  5. "Cache-Control": "no-cache",
  6. "Accept": "application/json, text/javascript, */*; q=0.01",
  7. "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",
  8. "X-Requested-With": "XMLHttpRequest",
  9. "Referer": "http://zxgk.court.gov.cn/zhongben/",
  10. "Accept-Language": "zh-CN,zh;q=0.9"
  11. }
  12. cookies = {
  13. "JSESSIONID": "77530B73F66B379CD18F6B1F911EB627",
  14. "lqWVdQzgOVyaS": "5J9rGvpe8a2ee7eqfWy1H7cytThi7pd3gZpwL9GPoMZgdGwTCcklMmITG0KLCvjDXvYBCHnRcdHvQZqmfq9iz6a",
  15. "_gscu_15322769": "68394732bqi5hj13",
  16. "_gscbrs_15322769": "1",
  17. "Hm_lvt_d59e2ad63d3a37c53453b996cb7f8d4e": "1668394716",
  18. "SESSION": "610ff295-e0c2-404e-8e14-0305749f4161",
  19. "wzws_cid": "4fae3f3f894cb8af607430e4d6a84f82ed2730dcedf2259e60f3139276cde5b805658460e55e03545e5df4d841325c8ce97ad4791031bb27c46962f370cc21b9c17cdcc60449ba128cf8f563e82188a9",
  20. "Hm_lpvt_d59e2ad63d3a37c53453b996cb7f8d4e": "1668405317",
  21. "_gscs_15322769": "t68398321zw9ki517^|pv:19",
  22. "lqWVdQzgOVyaT": "BV7sfFOO..okymC.9vgTZbwULG9vNZ_1IiqDHF6DfqJFI_OA9.5tzT09Z91ZKzMAttBS9LPnpqXD_dyDz547TYCVH55sU8U821Y3YvHuL4J6wcyPwuPj.TuGNkBLyPzJ9.8Z7PXul53YI89EZvjstxrfc9QMaggR6XslXlC0GsW5pBdWYSXlUEPNXepG3h9XWfEWokKQRFY3sZdxGAG7kJ1wgDE6ufxvzpsurovUv4rRFf3b3TvlSB4ZU7k3ojMYSIkaY4acms__fDLj2SJxmI70OCF5nr.jbdEIu0oQnOJs7cioqrBEHGzONAgLCyn9ZYR5Uxf2Xv_PoJHWxNU9eXc8tKkcIGofVq4OUhPl7ehWdGRaKbztz58cKOv9lpwons4D.LIqhAQiDcFLT1sluvc2IgQJ0Xm0FesdnpIQ__Q"
  23. }
  24. url = "http://zxgk.court.gov.cn/zhongben/checkyzm.do"
  25. params = {
  26. "captchaId": "wX6RGYJqcvwEwlZqfLbp332XkrStcnSS",
  27. "pCode": "U8TX"
  28. }
  29. response = requests.get(url, headers=headers, cookies=cookies, params=params, verify=False)
  30. print(response.text)
  31. print(response)