HexNio / booking_scraper

A booking.com Web Scraper for Data Mining/Harvesting and Automation
GNU General Public License v3.0
32 stars 24 forks source link

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

Open kajetanschuler opened 3 years ago

kajetanschuler commented 3 years ago

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

HexNio commented 3 years ago

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 commented 3 years ago

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

8be6f18

kajetanschuler commented 3 years ago

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 commented 3 years ago

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"

Hercules270 commented 3 years ago

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.

mirza-k commented 2 years ago

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.

fatimakashakesh commented 1 year ago

can any one help me to run this code?