Booking Scraper avatar
Booking Scraper

Pricing

$5.00 / 1,000 results

Go to Store
Booking Scraper

Booking Scraper

Developed by

Voyager

Voyager

Maintained by Apify

Scrape Booking with this hotels scraper and get data about accommodation on Booking.com. You can crawl by keywords or URLs for hotel prices, ratings, addresses, number of reviews, stars. You can also download all that room and hotel data from Booking.com with a few clicks: CSV, JSON, HTML, and Excel

4.5 (10)

Pricing

$5.00 / 1,000 results

72

Total users

2.9K

Monthly users

352

Runs succeeded

>99%

Issues response

2.8 days

Last modified

24 days ago

GE

Scrape by URL and no result

Closed

gutsy_ektara opened this issue
3 months ago

i've this error when scraping to this URL

2025-03-11T17:26:38.920Z INFO Extracting detail...
2025-03-11T17:26:39.494Z WARN No rooms data found in main data script {"mainDataJson":{"isRetina":"window.devicePixelRatio > 1","b_gtt":"dLYAeZFVJfNTBBSSUZWCFJcaJfOfOXdeDRMJZRT","b_action":"hotel","b_secure_domain":"https://secure.booking.com","b_site_type":"www","b_site_type_id":"1","b_agent_is_no_robot":true,"b_agent_is_robot":false,"b_query_params_with_lang_no_ext":"?label=gen173bo-1DCAsoXEIec2FuZHktdmlsbGFzLXBlcmlzc2Etc2FudG9yaW5pSAlYA2iMAogBAZgBCbgBB8gBDNgBA-gBAfgBA4gCAZgCAqgCA7gCzOTBvgbAAgHSAiQ5NjJjOTgxZC1kYzc4LTQ2NmQtYWEzYS03YmMzNTJjYmNlOWbYAgTgAgE&sid=4fb6ac6937c348886988b97267708c94","b_query_params_with_lang_no_ext_enforce_lang_aid_currency":"?label=gen173bo-1DCAsoXEIec2FuZHktdmlsbGFzLXBlcmlzc2Etc2FudG9yaW5pSAlYA2iMAogBAZgBCbgBB8gBDNgBA-gBAfgBA4gCAZgCAqgCA7gCzOTBvgbAAgHSAiQ5NjJjOTgxZC1kYzc4LTQ2NmQtYWEzYS03YmMzNTJjYmNlOWbYAgTgAgE&sid=4fb6ac6937c348886988b97267708c94;lang=en-gb;aid=304142;selected_currency=USD","b_travel_comm_url_with_lang":"https://community.booking.com/?profile.language=e... [line-too-long]
2025-03-11T17:26:39.792Z WARN CustomRequestsCheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Operation failed. Error detail: Cannot read properties of null (reading 'addressLine1')
2025-03-11T17:26:39.796Z at extractTraderInfo (file:///usr/src/app/dist/extraction/hotel-detail-extractor/trader-info-extractor.js:17:40)
2025-03-11T17:26:39.797Z at extractDetail (file:///usr/src/app/dist/extraction/hotel-detail-extractor/hotel-detail-page-extractor.js:60:21)
2025-03-11T17:26:39.799Z at handleDetailPage (file:///usr/src/app/dist/routes/detail-page-route.js:41:23)
2025-03-11T17:26:39.800Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-03-11T17:26:39.802Z at async default (file:///usr/src/app/dist/handle-page-function.js:14:9)
2025-03-11T17:26:39.803Z at async file:///usr/src/app/dist/main.js:37:17
2025-03-11T17:26:39.804Z at async ErrorSnapshotter.tryWithSnapshot (file:///usr/src/app/dist/error-snapshotter.js:48:20)
2025-03-11T17:26:39.806Z at async CustomRequestsCheerioCrawler.requestHandler (file:///usr/src/app/dist/main.js:36:13)
2025-03-11T17:26:39.807Z at async wrap (/usr/src/app/node_modules/@apify/timeout/cjs/index.cjs:54:21) {"id":"3cVigAcMYU5Bgaj","url":"https://www.booking.com/hotel/gr/sandy-villas-perissa-santorini.en-gb.html?lang=en-gb&group_children=0&soz=1&explicit_lang_change=1&selected_currency=USD&group_adults=2&no_rooms=1&lang_changed=1&explicit_curr_change=1","retryCount":4}
2025-03-11T17:26:46.088Z WARN CustomRequestsCheerioCrawler: Reclaiming failed request back to the list or queue. Operation failed. Error detail: Desired currency 'USD' was not loaded properly - 'GBP' was loaded instead.
2025-03-11T17:26:46.093Z at validateRenderedLocaleValue (file:///usr/src/app/dist/routes/detail-page-route.js:80:15) {"id":"3cVigAcMYU5Bgaj","url":"https://www.booking.com/hotel/gr/sandy-villas-perissa-santorini.en-gb.html?lang=en-gb&group_children=0&soz=1&explicit_lang_change=1&selected_currency=USD&group_adults=2&no_rooms=1&lang_changed=1&explicit_curr_change=1","retryCount":5}
2025-03-11T17:26:55.906Z INFO Extracting detail...
2025-03-11T17:26:56.385Z WARN No rooms data found in main data script {"mainDataJson":{"isRetina":"window.devicePixelRatio > 1","b_gtt":"dLYAeZFVJfNTBBSSUZWCFJcaJfOfOXdeDRMJZRT","b_action":"hotel","b_secure_domain":"https://secure.booking.com","b_site_type":"www","b_site_type_id":"1","b_agent_is_no_robot":true,"b_agent_is_robot":false,"b_query_params_with_lang_no_ext":"?label=gen173bo-1DCAsoXEIec2FuZHktdmlsbGFzLXBlcmlzc2Etc2FudG9yaW5pSAlYA2iJAogBAZgBCbgBGMgBDNgBA-gBAfgBA4gCAZgCAqgCBLgC2uTBvgbAAgHSAiQzNDZkNDA2ZS02OTljLTQ1NjctYWE0ZC00NjBhYWZjZjFlZjLYAgTgAgE&sid=885b5d525d8a8a3f9187c8226f9f4905","b_query_params_with_lang_no_ext_enforce_lang_aid_currency":"?label=gen173bo-1DCAsoXEIec2FuZHktdmlsbGFzLXBlcmlzc2Etc2FudG9yaW5pSAlYA2iJAogBAZgBCbgBGMgBDNgBA-gBAfgBA4gCAZgCAqgCBLgC2uTBvgbAAgHSAiQzNDZkNDA2ZS02OTljLTQ1NjctYWE0ZC00NjBhYWZjZjFlZjLYAgTgAgE&sid=885b5d525d8a8a3f9187c8226f9f4905;lang=en-gb;aid=304142;selected_currency=USD","b_travel_comm_url_with_lang":"https://community.booking.com/?profile.language=e... [line-too-long]
2025-03-11T17:26:56.418Z

then after change and adding the datetime on input request i got another error

2025-03-11T17:33:42.020Z INFO Extracting detail...
2025-03-11T17:33:43.251Z WARN CustomRequestsCheerioCrawler: Reclaiming failed request back to the list or queue. TypeError: Operation failed. Error detail: Cannot read properties of null (reading 'addressLine1')
2025-03-11T17:33:43.252Z at extractTraderInfo (file:///usr/src/app/dist/extraction/hotel-detail-extractor/trader-info-extractor.js:17:40)
2025-03-11T17:33:43.252Z at extractDetail (file:///usr/src/app/dist/extraction/hotel-detail-extractor/hotel-detail-page-extractor.js:60:21)
2025-03-11T17:33:43.253Z at handleDetailPage (file:///usr/src/app/dist/routes/detail-page-route.js:41:23)
2025-03-11T17:33:43.254Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-03-11T17:33:43.254Z at async default (file:///usr/src/app/dist/handle-page-function.js:14:9)
2025-03-11T17:33:43.255Z at async file:///usr/src/app/dist/main.js:37:17
2025-03-11T17:33:43.256Z at async ErrorSnapshotter.tryWithSnapshot (file:///usr/src/app/dist/error-snapshotter.js:48:20)
2025-03-11T17:33:43.257Z at async CustomRequestsCheerioCrawler.requestHandler (file:///usr/src/app/dist/main.js:36:13)
2025-03-11T17:33:43.258Z at async wrap (/usr/src/app/node_modules/@apify/timeout/cjs/index.cjs:54:21) {"id":"0xgDvxzm8tfIAB5","url":"https://www.booking.com/hotel/gr/sandy-villas-perissa-santorini.en-gb.html?checkout=2025-05-02&lang=en-gb&group_children=0&soz=1&explicit_lang_change=1&checkin=2025-05-01&selected_currency=USD&group_adults=1&no_rooms=1&lang_changed=1&explicit_curr_change=1","retryCount":2}
2025-03-11T17:34:02.137Z INFO Extracting detail...
2025-03-11T17:34:02.547Z
lukas.prusa avatar

Hi, thanks for opening this issue!

This seems like a bug in the extraction part of the scraper. We will investigate and fix this :)

I will keep you updated here, thanks!