booking_scraper icon indicating copy to clipboard operation
booking_scraper copied to clipboard

Can't retrieve price if datein and dateout is set!

Open kajetanschuler opened this issue 4 years ago • 7 comments

Hi,

thanks for this wonderful repo. It really helped me scraping booking!

I tried setting datein and I can't seem to get a price back. If I leave it empty it works. Do I need to have a specific format?

Thanks

kajetanschuler avatar Jan 21 '21 10:01 kajetanschuler

Hi, The correct format for datein and dateout is '%Y-%m-%d' so for example 2021-01-22

I'm going to update the documentation.

It makes me happy knowing my code is useful for someone.

H.

HexNio avatar Jan 21 '21 16:01 HexNio

I update the documentation, check if everything works then i will close the issue.

8be6f18

HexNio avatar Jan 21 '21 16:01 HexNio

Hi,

thanks for the fast answer, give me a day to check if it works. I will tell you as soon as I know :)

Thanks, K.

kajetanschuler avatar Jan 21 '21 16:01 kajetanschuler

I tried it with this command: result = bkscraper.get_result(city="Berlin", limit=10, detail=False, people=2, datein="2020-02-02", dateout="2020-02-03") And when i check the result, there is no price or better said the price is empty like this: price: ""

Also the link field in the result says "javascript:void(0)#hotelTmpl"

kajetanschuler avatar Jan 21 '21 20:01 kajetanschuler

I have the same problem. When I run get_result() with or without datein dateout parameters, price is always sate to strange string values such as: "'L\xc2\xa040". I don't understand what's the problem.

Hercules270 avatar Sep 19 '21 12:09 Hercules270

Hello @HexNio, I read in some articles that Booking.com invest a lot of money in anti-scrapping system. Do you know maybe how much this app is relevant nowadays? Did you try to use it this year let's say?

Thank you in advance.

mirza-k avatar Jun 16 '22 07:06 mirza-k

can any one help me to run this code?

fatimakashakesh avatar Apr 10 '23 15:04 fatimakashakesh