======================
places2xls helps to extract places using the google places API and store them in an excel spreadsheet.
to install the required packages just use:
pip3 install -r requirements.txt
- Register for a free Google Cloud Plattform Account
- Enable google places API(https://console.cloud.google.com/apis/library) in order to receive your API key.
Enter this api key here:
API_KEY = YOUR-API-KEY
After you entered the above information, run the main.py with at least the required arguments -t for type of business and -z for zipcode
Usage: main.py -c COUNTRYCODE -z ZIPCODE -t TYPE - n NUMBER_OF_RESULTS -s STRICTLVL -v -d DETAILS
i.e. main.py -c DE -z 50667 -t restaurant - n 40 -s 2 -v -d "name, formatted_address, website, opening_hours"
Use main.py -h for a list of all options
This code is licensed under the GNU General Public License v3.0. For more details, please take a look at the LICENSE file.
- Please feel free to enhance the script