Create a folder name data in your working directory first.
python script_name.py --keyword "your business keyword" -l- This command scrapes links of businesses based on your keyword and stores them in:
data/links/{keyword}.csv
python script_name.py --keyword "your business keyword" -r- This command uses the links from
data/links/{keyword}.csvto scrape detailed business information and saves it in:data/{keyword}.csv
data/links/: Stores the business profile links in a CSV files.- Example:
data/links/Real Estate Firms.csv
- Example:
data/: Stores the detailed scraped data.- Example:
data/Real Estate Firms.csv
- Example:
First, scrape links:
python script_name.py --keyword "plumbers" -lThen, scrape details using the saved links:
python script_name.py --keyword "plumbers" -r