For example, we query the data of air tickets from Fuzhou to Dalian on December 13,
We can view the network request and find that the data is queried through an interface, as follows:
https://et.xiamenair.com/xiamenair/book/findFlights.json?r=2593&lang=zh&takeoffDate=2016-12-13&returnDate=&orgCity=FOC&dstCity=DLC&tripType=0&_=1481608350629
The returned json data, get request, we access it directly, and the following error occurs:
{"resultCode":"04","title":"Sorry, query failed!"} "note":"The user session has expired, please check again." } In fact, the solution is as follows:
Tourists, if you want to see the hidden content of this post, please Reply
I wrote it in C# and the code is 40 lines, as follows:
Tourists, if you want to see the hidden content of this post, please Reply
|