An open API service indexing awesome lists of open source software.

https://github.com/ggyll/scrape_compass_agents

Web scraper for Compass.com Agents directory, from my Youtube tutorial.
https://github.com/ggyll/scrape_compass_agents

Last synced: about 1 year ago
JSON representation

Web scraper for Compass.com Agents directory, from my Youtube tutorial.

Awesome Lists containing this project

README

          

## This script allows you to scrape real estate agents from compass.com
The script can easily be changed to scrape other agent websites by changing the CSS and XPath selector

See the Youtube tutorial for more instructions:
https://youtube.com/shorts/Kux7Kro4eGA

### How to run the script

Clone the repository or download the ZIP and extract it.
Ensure you have Python 3 installed, then open up your terminal/command prompt, navigate to the directory of the script and run:

```
pip install -r requirements.txt
python scrape_agents.py
```
Your console should print out the extracted agent data. You can modify the script to write it to a CSV as well