可以从
XXXXXXXXXXXXXXXXXXXXXX/api/getdata_XXXXXXXXXXXXXp 这里获得数据
用post方法向这个地址传送以下参数:
city:"5p2t5bee" //"杭州"的base64编码
type:"SE9VUg==" //"HOUR"的base64编码
startTime:"MjAxNi0wMy0xMyAyMDowMDowMA==" //开始时间2016-03-13 20:00:00的编码
endTime:"MjAxNi0wMy0xNCAyMzowMDowMA==" //结束时间2016-03-14 23:00:00的编码
然后页面返回数据:
ZXlKMGIzUmhiQ0k2TWpjc0luSnZkM01pT2x0N0luUnBiV1VpT2lJeU1ERTJMVEF6TFRFeklESXdPakF3T2pBd0lpd2lZWEZwSWpvaU1UazJJaXdpY0cweVh6VWlPaUl4TkRjaUxDSndiVEV3SWpvaU1qRTNJaXdpWTI4aU9pSXhMalV3TVNJc0ltNXZNaUk2SWpjM0xqQXdNQ0lzSW04eklqb2lNelV1TURBd0lpd2ljMjh5SWpvaU16QXVNREF3SWl3aWNtRnVheUk2SWpNMU1TSjlMSHNpZEdsdFpTSTZJakl3TVRZdE1ETXRNVE1nTWpFNk1EQTZNREFpTENKaGNXa2lPaUl4T0RVaUxDSndiVEpmTlNJNklqRXpPU0lzSW5CdE1UQWlPaUl5TURZaUxDSmpieUk2SWpFdU1qazNJaXdpYm04eUlqb2lOall1TURBd0lpd2liek1pT2lJek5pNHdNREFpTENKemJ6SWlPaUl5Tnk0d01EQWlMQ0p5WVc1cklqb2lNelE1SW4wc2V5SjBhVzFsSWpvaU1qQXhOaTB3TXkweE15QXlNam93TURvd01DSXNJbUZ4YVNJNklqRTJPU0lzSW5CdE1sODFJam9pTVRJNElpd2ljRzB4TUNJNklqRTROaUlzSW1Odklqb2lNUzR4TXpjaUxDSnVieklpT2lJMU9DNHdNREFpTENKdk15STZJak00TGpBd01DSXNJbk52TWlJNklqSXlMakF3TUNJc0luSmhibXNpT2lJek5EY2lmU3g3SW5ScGJXVWlPaUl5TURFMkxUQXpMVEV6SURJek9qQXdPakF3SWl3aVlYRnBJam9pTVRjd0l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ETWlMQ0p3YlRKZk5TSTZJakV3T1NJc0luQnRNVEFpT2lJeE5qa2lMQ0pqYnlJNklqQXVPVEV3SWl3aWJtOHlJam9pTnpBdU1EQXdJaXdpYnpNaU9pSTNPUzR3TURBaUxDSnpieklpT2lJeE5TNHdNREFpTENKeVlXNXJJam9pTXpJMUluMHNleUowYVcxbElqb2lNakF4Tmkwd015MHhOQ0F5TWpvd01Eb3dNQ0lzSW1GeGFTSTZJakV6TkNJc0luQnRNbDgxSWpvaU1UQXlJaXdpY0cweE1DSTZJakUxT0NJc0ltTnZJam9pTUM0NE5URWlMQ0p1YnpJaU9pSTJNQzR3TURBaUxDSnZNeUk2SWpjNUxqQXdNQ0lzSW5Odk1pSTZJakUyTGpBd01DSXNJbkpoYm1zaU9pSXlPVGdpZlYxOTVwMnQ1YmVl
两次base64解码后得到:
<code class="lang-html">{"total":27,"rows":[{"time":"2016-03-13 20:00:00","aqi":"196","pm2_5":"147","pm10":"217","co":"1.501","no2":"77.000","o3":"35.000","so2":"30.000","rank":"351"},{"time":"2016-03-13 21:00:00","aqi":"185","pm2_5":"139","pm10":"206","co":"1.297","no2":"66.000","o3":"36.000","so2":"27.000","rank":"349"},{"time":"2016-03-13 22:00:00","aqi":"169","pm2_5":"128","pm10":"186","co":"1.137","no2":"58.000","o3":"38.000","so2":"22.000","rank":"347"},{"time":"2016-03-13 23:00:00","aqi":"170","pm2_5":"129","pm10":"185","co":"1.078","no2":"60.000","o3":"34.000","so2":"22.000","rank":"349"},{"time":"2016-03-14 00:00:00","aqi":"155","pm2_5":"118","pm10":"172","co":"0.999","no2":"54.000","o3":"40.000","so2":"20.000","rank":"337"},{"time":"2016-03-14 01:00:00","aqi":"122","pm2_5":"92","pm10":"133","co":"0.861","no2":"42.000","o3":"51.000","so2":"17.000","rank":"301"},{"time":"2016-03-14 02:00:00","aqi":"83","pm2_5":"61","pm10":"88","co":"0.784","no2":"28.000","o3":"73.000","so2":"13.000","rank":"217"},{"time":"2016-03-14 03:00:00","aqi":"72","pm2_5":"52","pm10":"74","co":"0.799","no2":"30.000","o3":"68.000","so2":"13.000","rank":"182"},{"time":"2016-03-14 04:00:00","aqi":"59","pm2_5":"42","pm10":"62","co":"0.796","no2":"31.000","o3":"63.000","so2":"13.000","rank":"136"},{"time":"2016-03-14 05:00:00","aqi":"58","pm2_5":"41","pm10":"61","co":"0.835","no2":"34.000","o3":"55.000","so2":"14.000","rank":"124"},{"time":"2016-03-14 06:00:00","aqi":"62","pm2_5":"44","pm10":"67","co":"0.831","no2":"35.000","o3":"51.000","so2":"14.000","rank":"142"},{"time":"2016-03-14 07:00:00","aqi":"69","pm2_5":"50","pm10":"79","co":"0.861","no2":"45.000","o3":"41.000","so2":"15.000","rank":"156"},{"time":"2016-03-14 08:00:00","aqi":"79","pm2_5":"58","pm10":"93","co":"0.892","no2":"49.000","o3":"46.000","so2":"20.000","rank":"176"},{"time":"2016-03-14 09:00:00","aqi":"87","pm2_5":"64","pm10":"98","co":"0.882","no2":"39.000","o3":"72.000","so2":"22.000","rank":"190"},{"time":"2016-03-14 10:00:00","aqi":"87","pm2_5":"64","pm10":"97","co":"0.894","no2":"38.000","o3":"84.000","so2":"23.000","rank":"185"},{"time":"2016-03-14 11:00:00","aqi":"93","pm2_5":"69","pm10":"101","co":"0.863","no2":"37.000","o3":"98.000","so2":"24.000","rank":"218"},{"time":"2016-03-14 12:00:00","aqi":"98","pm2_5":"73","pm10":"111","co":"0.872","no2":"33.000","o3":"113.000","so2":"22.000","rank":"247"},{"time":"2016-03-14 13:00:00","aqi":"113","pm2_5":"85","pm10":"128","co":"0.872","no2":"32.000","o3":"155.000","so2":"22.000","rank":"295"},{"time":"2016-03-14 14:00:00","aqi":"123","pm2_5":"93","pm10":"139","co":"0.893","no2":"33.000","o3":"141.000","so2":"22.000","rank":"314"},{"time":"2016-03-14 15:00:00","aqi":"130","pm2_5":"99","pm10":"147","co":"0.866","no2":"32.000","o3":"147.000","so2":"20.000","rank":"326"},{"time":"2016-03-14 16:00:00","aqi":"137","pm2_5":"104","pm10":"155","co":"0.843","no2":"34.000","o3":"151.000","so2":"19.000","rank":"337"},{"time":"2016-03-14 17:00:00","aqi":"143","pm2_5":"109","pm10":"162","co":"0.833","no2":"38.000","o3":"147.000","so2":"19.000","rank":"340"},{"time":"2016-03-14 18:00:00","aqi":"144","pm2_5":"110","pm10":"162","co":"0.864","no2":"46.000","o3":"137.000","so2":"19.000","rank":"342"},{"time":"2016-03-14 19:00:00","aqi":"144","pm2_5":"110","pm10":"162","co":"0.884","no2":"56.000","o3":"118.000","so2":"17.000","rank":"337"},{"time":"2016-03-14 20:00:00","aqi":"147","pm2_5":"112","pm10":"168","co":"0.914","no2":"74.000","o3":"90.000","so2":"16.000","rank":"336"},{"time":"2016-03-14 21:00:00","aqi":"143","pm2_5":"109","pm10":"169","co":"0.910","no2":"70.000","o3":"79.000","so2":"15.000","rank":"325"},{"time":"2016-03-14 22:00:00","aqi":"134","pm2_5":"102","pm10":"158","co":"0.851","no2":"60.000","o3":"79.000","so2":"16.000","rank":"298"}]}杭州</code>
就是所要的数据了。
个人认为用python来拉取比较方便。。