A Selenium-based scraper for extracting hotel listings from Booking.com using user-defined filters and settings.
It supports dynamic page interactions like scrolling and filter selection to capture accurate and customized search results.
This project is for educational and personal use only. Scraping content from websites may violate their Terms of Service. The author assumes no responsibility for how this tool is used. Use at your own risk.
- Search by currency, location, check-in/check-out dates, number of adults and total rooms.
- Filter by star ratings.
- Sort results using Booking.com's sorting options.
- Auto-scroll and click "Load more results" to capture all listings.
- Outputs hotel data in a structured csv format.
git clone https://github.com/your-username/bookingdotcom-scraper.git
cd bookingdotcom-scraper
# Using Python 3.12.9
python3.12 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Edit the .env
file with the correct path for your Selenium driver directory and other selection rules:
python main.py
- Python 3.12.9
- Google Chrome (or compatible browser)
- ChromeDriver or appropriate WebDriver in your system path or specified directory
Scraped hotel data will be saved in the directory defined by OUTPUT_DIR_PATH
in your .env
file.
This project is licensed under the MIT License. See the LICENSE file for details.