This article is a mirror article of machine translation, please click here to jump to the original article.

View: 99842|Reply: 36

[Console Program] C# Capture Xiamen Airlines flight ticket data

[Copy link]
Posted on 12/13/2016 2:46:43 PM | | | |


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, pleaseReply




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, pleaseReply






Previous:windows traffic monitoring software XDU Meter
Next:Linux sets up DNS servers
Posted on 7/13/2018 1:42:10 PM |
{"resultCode":"04","title":"Query failed","note":"The user's session has expired, click Confirm to requery.} }
Posted on 10/31/2017 11:42:36 PM |
We people all know that raw and cooked should be separated, and the chopping board should be scrubbed, you are cooking for the guests, hey, aren't you afraid of food poisoning and sending the guests directly to the hospital? My innkeeper
 Landlord| Posted on 3/17/2017 12:58:51 PM |
a1a1a1 Posted on 2017-3-17 12:38
It's so amazing... No river crabs now

Is it still there???
Posted on 12/16/2016 10:11:13 AM |
Look at the code, is it a web crawler?
Posted on 3/17/2017 12:38:38 PM |
It's so amazing... No river crabs now
Posted on 3/19/2017 5:05:41 AM |
The rookie passing by is not very knowledgeable about learning and learning
Posted on 5/13/2017 4:46:38 PM |
Is it timestamped??
Posted on 6/12/2017 4:55:32 PM |
haoasdfasdfasdddddddddddddddddddddd
Posted on 6/17/2017 8:26:45 PM |
It's really good
Posted on 6/27/2017 11:15:09 AM |
How can this be done? It's so difficult
Posted on 6/27/2017 11:15:49 AM |
How can this be done? It's hard to say.222
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com