A lead generation tool that searches the web for businesses in a specific niche and country, scrapes their contact info (email & phone), and saves it to a CSV file.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Edit
.envto configure your search:
SEARCH_QUERY="plumber in"
COUNTRY="USA"
MAX_RESULTS=10
OUTPUT_FILE="output/leads.csv"
- Run the scraper:
source venv/bin/activate
python src/scraper.pyResults are saved to output/leads.csv.
├── .env # Configuration
├── src/
│ └── scraper.py # Main scraper
├── output/ # CSV output directory
├── requirements.txt
├── LICENSE
└── README.md