-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugged #68
Comments
Dear @ZoranPandovski , I have this problem too. Can you help us? |
I haven't checked this repo for a year. Can you please provide more info or steps to reproduce this? |
Dear @ZoranPandovski, thank you for your reply. When I run booking.py file, the following error occurs I think the code cannot extract any hotel information. |
It shouldn't be too difficult. As far as I noticed, Booking mainly changed their classes. I'm trying to locate all occurrences of the specific site and XML elements that were used before and comparing it within their current pages. |
Dear @ZoranPandovski. Do you update the repository? |
@ZoranPandovski Error "IndexError: list index out of range" is coming up while finding for this class: "sr_pagination_item" in the parsed html around line 134 in booking.py Now just trying to understand, the reason for searching this class, do i need to change the url as well. Any pointer will be highly appreciated.
|
/Documents/GitHub/BookingScraper/booking.py' && echo Exit status: $? && exit 1
Traceback (most recent call last):
File "/Documents/GitHub/BookingScraper/booking.py", line 214, in
get_data(args.rooms, args.country, args.out_format, args.startdate, args.enddate)
File "/Documents/GitHub/BookingScraper/booking.py", line 152, in get_data
hotels_list: list = prep_data(rooms, country, out_format, start_date, end_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pascal/Documents/GitHub/BookingScraper/booking.py", line 122, in prep_data
parsed_html.find_all("li", {"class": "sr_pagination_item"})[-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: