Leads Extractor is a web application built with Flask that allows you to scrape using Google Maps for business information. It retrieves and displays details such as name, rating, address, phone number, website, and email. The extracted data can be viewed in a table and downloaded as a CSV file.
- Google Maps Scraping: Extract business details based on search queries and locations.
- Data Display: View scraped data in an organized table format.
- CSV Download: Export the data as a CSV file.
- Dynamic Updates: Automatically update the results table as new data is fetched.
- Clone this repository:
git clone https://github.com/your-username/leads-extractor.git
- Navigate to the project directory:
cd leads-extractor - Install the required dependencies:
pip install -r requirements.txt
Download ChromeDriver compatible with your Chrome browser version. Ensure that(You don't need to do this anymore, Code will do it for you)chromedriver.exeis placed in theChromedriverdirectory.- Run the Flask application:
python app.py
- Open your browser and go to
http://127.0.0.1:5000. - Enter your search query and location in the form and click "Start Scraping."
- The application will start scraping Google Maps and display the results in the table.
- Once scraping is complete, you can download the results as a CSV file by clicking the "Download CSV" button.
Feel free to open an issue or submit a pull request if you have any improvements or bug fixes.
- Flask: For building the web application.
- Selenium: For browser automation and scraping.
- BeautifulSoup: For parsing HTML content.
- Requests: For handling HTTP requests.
