zding1016 / airbnb-scraper

Airbnb Scraper: Advanced Airbnb Search using Scrapy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Airbnb Scraper: Get Property Information Based on Listing ID

This work is inspired by https://github.com/digital-engineering/airbnb-scraper, which is a very excellent work and helped me a lot. However, it can only search for properties based on keywords and can only return limited number of search results (for each search, Airbnb only return about 300 results). So it's inconvenient to scrap large number of properties (for example, you want you scrap all the available properties in New York). This modified tool allows large scale Airbnb scrapping given the listing ID of each property. Text information of properties are saved to CSV or xlsx. The tool can also save photo links (in CSV), reviews (in CSV) and the API response (in txt).

Example Usage

scrapy crawl airbnb -a query="test.csv" -o new_york.csv

Parameters

You can find the values for these by first doing a search manually on the Airbnb site.

  • path: The path to the csv file containing the listing ids of properties (column 'id'). (required)
  • output: Path of output file.

Requirements

  • Python 3.9+
  • Scrapy
  • openpyxl
  • ElasticSearch 7+ if using elasticsearch pipeline
  • see requirements.txt for details

Credits

For Notes, Installation and Configuration, please see https://github.com/digital-engineering/airbnb-scraper#readme.

About

Airbnb Scraper: Advanced Airbnb Search using Scrapy

License:GNU General Public License v3.0


Languages

Language:Python 100.0%