This Python app uses Selenium Webdriver to scrape property listings from real estate websites. The app gathers the listing price, annual rental income, and url to the listing and then stores it in a csv file.
- Python - the programming language
- Selenium Webdriver - to scrape the web pages
- Docker - to provide a stable runtime environment
- Redfin
The application has two ways to build and run it in a docker container:
- Using a run script
- Manually running it using docker
- Running it locally with Python3
From the project root you can run any of these commands:
- ./run buildApp - Builds the application's docker container and tags it as rental_property_scraper:latest.
- ./run runApp - Runs the application's docker container.
- ./run buildAndRunApp - Builds and then runs the application's docker container.
From the project root run the following commands in order:
docker build -t rental_property_scraper:latest -f Dockerfile .
- build the application docker containerdocker run rental_property_scraper:latest
- run the docker container
- pip install -r requirements.txt
- python3 main.py