Skip to content

A user-friendly Python tool for scraping hotel information from Booking.com using Selenium

Notifications You must be signed in to change notification settings

AbdulrahmanBaiasy/selenium-booking-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Booking Scraper

Python Selenium

A simple yet powerful web scraping tool built with Selenium, designed specifically to extract hotel data from Booking.com.

Features

  • 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.

Requirements

  • 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.

Installation

  1. Clone this repository:

     git clone [https://github.com/AbdulrahmanBaiasy/selenium-booking-scraper]
     cd selenium-booking-scraper
  2. Install dependencies

    pip install -r requirements.txt
  3. Run the script

    python main.py
  4. 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.
    
  5. Get results

    The script will apply filters, and then generate a report of the matching hotels.


License

This script is provided under the MIT License. Feel free to use, modify, and distribute it as needed.

About

A user-friendly Python tool for scraping hotel information from Booking.com using Selenium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages