the original XI ' an Kun Peng
original link: http://http://www.site-digger.com/html/articles/20120509/33.html
where to go Web proxy website has its own independent ticket search interface, such as http://xyx.trade.qunar.com/site/.
Search results are dynamically loaded using AJAX, and the data returned by the server is in JSON format.
The difficulty is that the returned price data is encrypted, and there is a big deviation between the return price and the real price. When the client uses JS to decrypt, the price displayed to the page is correct. Because the decryption algorithm is very complex, the implementation is very difficult. The ROC data technician collects the data from the WebKit simulation browser, bypassing the encryption measure and successfully capturing the ticket price. The program looks like this: the result of the acquisition is as follows:Special Note: This article is for Xi ' an the Kun Peng's original article, in addition to you can comment, but also can be reproduced to your website or blog, but please keep the source address, thank you!! (respect for the work of others, you and I work together)
Where to go Network agent website ticket price collection scheme