Hi,
Is scraping done directly on hotels.com via my curl call (example)?
or do I recall the data in an external database?
every time I make a call there are always 2/3 reviews made on the same day
Bye
Partecipa alla discussione - aggiungi un commento di seguito:
Hello,
Paste your request and response here. I will help you. You may also send it to apidojo@gmail.com for easier discussion.
Regards.
Hi, man
if i add paginationURL
return ERROR in my aipi call and in your test api call
best Regards
by
Hello,
You are “paginationURL” optional parameter for paging purpose, the parameter helps you to load the next page.
In addition, you are leaking your token key, what a careless man!
Regards.
Hi,
this is my api call
an this is the hotel link
https://it.hotels.com/ho1387456/phi-hotel-canalgrande-modena-italia/?chkin=2022-10-19&chkout=2022-10-20&destType=CURRENT_LOCATION&destination=Modena%2C Emilia Romagna%2C Italia&expediaPropertyId=12108&neighborhoodId=553248634838840515&pwaDialogNested=PropertyDetailsReviewsBreakdownDialog&pwa_ts=1664987093384&referrerUrl=aHR0cHM6Ly9pdC5ob3RlbHMuY29tL0hvdGVsLVNlYXJjaA%3D%3D®ionId=4954&rfrr=HSR&rm1=a2&selected=12108&selectedRatePlan=286230735&selectedRoomType=219932333&semdtl=&sort=RECOMMENDED&top_cur=EUR&top_dp=183&useRewards=false&userIntent=&x_pwa=1
i take all newest reviews but the last 2 reviews not apper inside a json
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => “https://hotels4.p.rapidapi.com/reviews/v2/list?hotelId=1387456&reviewOrder=date_newest_first&tripTypeFilter=all”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: hotels4.p.rapidapi.com”,
"X-RapidAPI-Key: "
],
]);
response=curlexec(curl);
err=curlerror(curl);
curl_close($curl);
if ($err) {
//echo “cURL Error #:” . $err;
} else {
//echo $response;
}
Thanks for all.
Bye
Mirco
Hello,
All of our APIs provide live data. Response data is always synced with the official site/application at request time. We do not cache or store data locally at all.
Regards.