This is a Python-based web scraper for Airbnb listings. It uses Selenium and BeautifulSoup to extract information about properties listed on Airbnb.
- Scrapes multiple pages of Airbnb listings
- Extracts key information including:
- Title
- URL
- Price
- Rating
- Number of reviews
- Property type
- Amenities
- Saves results to CSV file
- Headless browser operation
- Configurable number of pages to scrape
- Clone this repository
- Install the required packages:
pip install -r requirements.txt
Run the script using Python:
python webscraper.pyThe script will prompt you for:
- Location to search (e.g., 'New-York')
- Number of pages to scrape (default is 5)
The results will be saved to a CSV file in the current directory with the format: airbnb_listings_YYYYMMDD_HHMMSS.csv
- Python 3.7+
- Chrome browser installed
- Internet connection
- The script uses a headless Chrome browser
- Respect Airbnb's terms of service and rate limiting
- Some listings might not be scraped if they don't follow the expected HTML structure
- The script includes error handling for common issues
This scraper is for educational purposes only. Make sure to review and comply with Airbnb's terms of service and robots.txt before using this scraper.