How does php get the data of this Ctrip page?

Ctrip target URL: https://piao.ctrip.com/ticket...
wants to get the scenic spot picture on the ticket page URL
you can only get the first scenic spot picture by directly viewing the source code

.

take a look at it for yourself. It should be to request the

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

but the request parameters are as follows:

{"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}

I don"t know how to find the rule of this request parameter

Php
May.22,2022

"id": 49894 , indicating scenic spot id


the best way
you need to install a xpath execution environment
I use google's extension tool
use the xpath Google extension tool to search the img node of a web page directly

clipboard.png

I think I can definitely help you. Ha!
I wish you success!

all the addresses you want are in the upper right corner


id should be the scenic spot id. Other parameters of the picture, as well as the format returned, must be attached and submitted together. Id alone is definitely not allowed from the name, and the image size. Ctrip should also have an anti-crawling mechanism. You can use postman to try which header fields are necessary.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37978-2c0d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37978-2c0d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?