https://github.com/esaum10/place_scrapper
Scrapping package to retrieve data from Google Places.
https://github.com/esaum10/place_scrapper
google-maps places-api scrapping selenium
Last synced: about 2 months ago
JSON representation
Scrapping package to retrieve data from Google Places.
- Host: GitHub
- URL: https://github.com/esaum10/place_scrapper
- Owner: EsauM10
- Created: 2023-03-23T18:51:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T00:26:43.000Z (over 2 years ago)
- Last Synced: 2025-10-03T18:57:34.173Z (8 months ago)
- Topics: google-maps, places-api, scrapping, selenium
- Language: Python
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README



# Google Places Scrapper
## Installation
```
pip install git+https://github.com/EsauM10/place_scrapper.git
```
## Usage
```python
from place_scrapper import GooglePlaces
places = GooglePlaces.get_places(query='Restaurants in São Paulo', limit=10)
for place in places:
print(place)
```
### Saving to a file:
```python
import json
from place_scrapper import GooglePlaces
places = GooglePlaces.get_places(query='Restaurants in São Paulo')
data = [place.to_dict for place in places]
with open('places.json', mode='w', encoding='utf-8') as file:
file.write(json.dumps(data))
```