live : https://gmap-scraper-web-app-shakib-absar.streamlit.app/
Google Maps Business Scraper is a Streamlit application designed to scrape business details from Google Maps based on a search term. It extracts business names
, addresses
, websites
, phone numbers
, and average reviews
.
The scraped data is then saved in an Excel file for easy access and download.
- User Input: Enter a search term and specify the number of results to scrape.
- Progress Indicator: A progress bar and elapsed time indicator to show the scraping process.
- Data Export: Export the scraped data to an Excel file and download it directly from the app.
- Styled Interface: Custom background color and personalized branding.
-
Clone the Repository
git clone https://github.com/sabsar42/Google-Map-Scrapper-Streamlit.git cd Google-Map-Scrapper-Streamlit
-
Create a Virtual Environment
python -m venv venv
-
Activate the Virtual Environment
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install Required Packages
pip install -r requirements.txt
-
Run the Streamlit App
streamlit run main_setVal.py
-
Open the App in a Browser After running the command, Streamlit will display a URL in the terminal (usually
http://localhost:8501
). Open this URL in your browser. -
Enter Search Term and Number of Results
- Enter the desired search term.
- Specify the number of results to scrape.
-
Scrape and Download Data
- Click on the Get Data button to start scraping.
- After completion, download the Excel file containing the scraped data.
main_setVal.py
: Contains the main Streamlit application code along with the Scraper logic.
- Enter Search Term: "Coffee Shops in New York, United States"
- Specify Number of Results: 100
- Click
Get Data
: The app scrapes data and displays progress. - Download Excel File: Click the download button to get the results in .XLSX format ( Excel File ).
Contributions are welcome! Feel free to submit a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for more details.
Developed by Shakib Asbar.