dtrungtin / actor-booking-scraper

Actor for extracting data about hotels from Booking.com
https://apify.com/dtrungtin/booking-scraper
Apache License 2.0
17 stars 19 forks source link

Error with check-in date = today #50

Closed IFShirokikh closed 2 years ago

IFShirokikh commented 2 years ago

Hello. I want to get information about one hotel. I choose next parameters: ... "checkIn": "2021-12-17", "checkOut": "2021-12-18", ... and i see the error:

2021-12-17T06:12:46.930Z ERROR 2021-12-17T06:12:46.933Z Error: WRONG INPUT: You can't use a date in the past: 2021-12-17 2021-12-17T06:12:46.937Z at module.exports.checkDate (/home/myuser/src/util.js:296:19) 2021-12-17T06:12:46.940Z at module.exports.validateInput (/home/myuser/src/input.js:38:39) 2021-12-17T06:12:46.942Z at /home/myuser/src/main.js:12:5 2021-12-17T06:12:46.945Z at processTicksAndRejections (node:internal/process/task_queues:96:5) 2021-12-17T06:12:46.948Z at async run (/home/myuser/node_modules/apify/build/actor.js:182:13)

But on booking.com i can choose today as check-in date. How can I fix it? Thanks you.

zpelechova commented 2 years ago

Hey, is it possible the hotel is in different time zone where 2021-12-17 is already yesterday? cc @lhotanok

IFShirokikh commented 2 years ago

No, this hotel has Moscow time zone (https://www.booking.com/hotel/ru/melody.ru.html)

P.S. If i choose tomorrow - all right