猿问

php 如何获取这个携程页面的数据

携程目标URL:https://piao.ctrip.com/ticket...
想要获取门票页面的景点图片URL
直接查看源代码只能获取到第一张的景点图片

自己看下了,应该是请求这个url的

https://sec-m.ctrip.com/restapi/soa2/10131/json/ViewSpotImages?_fxpcqlniredt=09031037311838329819

但是请求参数较多如下:

{"id":49894,"imgsizes":["C_500_280","C_73_43"],"prdid":90971,"contentType":"json","head":{"appid":"100013776","cid":"09031037311838329819","ctok":"","cver":"1.0","lang":"01","sid":"8888","syscode":"09","auth":"","extension":[]},"ver":"7.10.3.0319180000","pageid":10650000804}

不知道如何找这个请求参数的规律


月关宝盒
浏览 554回答 1
1回答

慕标5832272

"id":49894,表示景点id
随时随地看视频慕课网APP
我要回答