Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdulhadi806/gms-script
GMS-Script can easily scrape multiple businesses from GM and create a CSV file with scraped data.
https://github.com/abdulhadi806/gms-script
python webscraping
Last synced: 7 days ago
JSON representation
GMS-Script can easily scrape multiple businesses from GM and create a CSV file with scraped data.
- Host: GitHub
- URL: https://github.com/abdulhadi806/gms-script
- Owner: AbdulHadi806
- License: mit
- Created: 2024-04-04T12:49:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T18:42:17.000Z (7 months ago)
- Last Synced: 2024-04-29T18:27:06.089Z (7 months ago)
- Topics: python, webscraping
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Maps Scraper
This is simple scraper that uses Playwright to extract data from Google Maps.
This example is made for educational purposese.
This scrapit is easy to customize.
check both Excel & CSV files (google_maps_data) to see how final data will look like.
## To Install:
- (Optional: create & activate a virtual environment) `virtualenv venv`, then `source venv/bin/activate`- `pip install -r requirements.txt`
- `playwright install chromium`## to Run:
### A single search:
- `python3 main.py -s= -t=`### Multiple searches at once
1. Add searches in `input.txt`, each search should be in a new line as shown in the example (check `input.txt`)
2. Then run: `python3 main.py`
3. If you pass `-t=` it will be applied to all the searches.## Tips:
If you want to search more than the limited 120 results, detail you search more and as granular as you need it to be in the `input.txt`, for example:- Instead of using:
`United states dentist`
- Use:
`Unites States Boston dentist`
`Unites States New York dentist`
`Unites States Texas dentist`
And so on...