gilbertekalea / booking.com_crawler

An advanced booking.com scraper. Collect property name, review score, property price and property address . Download property images and relevant url.
MIT License
10 stars 0 forks source link

'Booking' object has no attribute 'find_element_by_css_selector' #4

Open hailong18102002 opened 10 months ago

hailong18102002 commented 10 months ago

Hi, I am using window for this project Then I run python runbot.py But getting this error: Traceback (most recent call last): File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 35, in bot.change_currency(currency="USD") File "d:\visual code\danang aihub\booking.com_crawler\booking\booking.py", line 79, in change_currency currency_element = self.find_element_by_css_selector( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Booking' object has no attribute 'find_element_by_css_selector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 13, in with Booking() as bot: TypeError: Booking.exit() takes 1 positional argument but 4 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 55, in raise SyntaxError SyntaxError: None

Am I wrong somewhere, please help.

elio1fiore commented 10 months ago

I have this problem too +1