pip install git+https://github.com/EsauM10/place_scrapper.git
from place_scrapper import GooglePlaces
places = GooglePlaces.get_places(query='Restaurants in São Paulo', limit=10)
for place in places:
print(place)
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))