A simple yet powerful web scraping tool built with Selenium, designed specifically to extract hotel data from Booking.com.
- User-friendly: Easy to use with guided prompts for input.
- Customizable: Change currency, search location, check-in/out dates, and number of guests.
- Filtered Results: Apply filters to refine your hotel search.
- Detailed Reports: Get a clear report of hotel names, prices, and ratings.
- Error Handling: Includes troubleshooting for common Selenium setup issues.
- Python 3.x: Make sure you have Python 3 installed.
- Selenium: Install Selenium using
pip install selenium
. - Web Driver:
- Download the appropriate WebDriver for your browser (e.g., ChromeDriver for Chrome) and add its location to your system's PATH.
- Alternatively, specify the WebDriver path directly in your code.
-
Clone this repository:
git clone [https://github.com/AbdulrahmanBaiasy/selenium-booking-scraper] cd selenium-booking-scraper
-
Install dependencies
pip install -r requirements.txt
-
Run the script
python main.py
-
Follow the prompts
Enter the desired currency code (e.g., USD, AUD, AED). Specify the destination you want to search for. Provide check-in and check-out dates in the format yyyy-mm-dd. Indicate the number of adults.
-
Get results
The script will apply filters, and then generate a report of the matching hotels.
This script is provided under the MIT License. Feel free to use, modify, and distribute it as needed.