|
终于找到想要的函数,只是不太会用,请问GetJsonSource(url)函数可以返回查询内容么?
网址是 https://calc.ygcf.info/workday/end
post发送内容 {"start_date":"2020/10/3","days":"7"}
正常应该返回{"code":0,"data":"2020-10-16"}
如何能抓到结果 2020-10-16
————--------------
以下为post抓取内容:
POST https://calc.ygcf.info/workday/end HTTP/1.1
Host: calc.ygcf.info
Connection: keep-alive
Content-Length: 37
Accept: application/json, text/plain, */*
X-XSRF-TOKEN: eyJpdiI6IjFLNkxaeGNzR00xYldGNWJWY0JDcUE9PSIsInZhbHVlIjoiTHp4NXJ2bGNSVWw5aXA3NFwvc3ZURGtOZUhOaDlLdDQ5WHNDcHk5THBQY0c1YWh1SU9VZ282STBiZ0wxUmpGRXkiLCJtYWMiOiI4ZmNhMWJkMzBhY2U3NzcxMzUwY2E4MGVlYTBjMzg1MWIwMDFkYzQxZDFkYmZkZTAxMDUwMmU4ZTc4MmIyM2MwIn0=
X-CSRF-TOKEN: Sx9kks2zbWxRHcWCxYCfjErNEoIlYSeCBojrqCdW
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.56
Content-Type: application/json;charset=UTF-8
Origin: https://calc.ygcf.info
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://calc.ygcf.info/workday/end
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Cookie: _ga=GA1.2.2022009459.1603978840; _gid=GA1.2.1333683735.1603978840; XSRF-TOKEN=eyJpdiI6IjFLNkxaeGNzR00xYldGNWJWY0JDcUE9PSIsInZhbHVlIjoiTHp4NXJ2bGNSVWw5aXA3NFwvc3ZURGtOZUhOaDlLdDQ5WHNDcHk5THBQY0c1YWh1SU9VZ282STBiZ0wxUmpGRXkiLCJtYWMiOiI4ZmNhMWJkMzBhY2U3NzcxMzUwY2E4MGVlYTBjMzg1MWIwMDFkYzQxZDFkYmZkZTAxMDUwMmU4ZTc4MmIyM2MwIn0%3D; calc_session=eyJpdiI6IkhuMjJuNkJiSGdYQ3hWU1daV0N6RGc9PSIsInZhbHVlIjoiNHh3N0c4THBhc1JzeVVqUkFNcnJ5SHR2T2ltUWhpTHQrMGpFWVF4TTBla0wxMzhBT25HYjVESnJNWCtFRkpLUSIsIm1hYyI6ImFhM2E0MDQwMTA3N2QyMjY1ODg5ZDc1MWU1ZGZiYjhjOTI5M2ViNjQ4ZmE0MTU1Yzg2YzNlMjY5NDcxMWE2ZTMifQ%3D%3D
{"start_date":"2020/10/3","days":"7"}
|
|