Skip to content

Scrapping package to retrieve data from Google Places.

Notifications You must be signed in to change notification settings

EsauM10/place_scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests

Google Places Scrapper

Installation

pip install git+https://github.com/EsauM10/place_scrapper.git

Usage

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:

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))

About

Scrapping package to retrieve data from Google Places.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages