pip install pandas
pip install requests
pip install configparser
get_facebook.py
- Generate the bearer token
https://graph.facebook.com/oauth/access_token
?client_id=<your-client-id>
&client_secret=<your-client-secret>
&grant_type=client_credentials
- Install facebook modules
pip install facebook-sdk
https://developers.facebook.com/docs/places/web/search/ https://developers.facebook.com/docs/graph-api/reference/place-information/
get_google.py
The Google Places API is a great resource for mining data for a giving location. The code in get_google.py will demonstrate the use of this API to retrieve data using the nearbysearch which returns all places in the areas around the passed in geo location coordinates
-
Get API Key https://developers.google.com/places/web-service/get-api-key
-
Test your API Key https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&key=<API_KEY>
https://developers.google.com/places/web-service/intro
pdf_extract.py
PyPDF2 is the python module used for this code sample. Will update this section when I try out other modules and put through some comparisons.
- Install PyPDF2 module
pip install PyPDF2
ocr_extract.py
Have had some good success using the pytesseract module for extracting text from an OCR images. Happy to take feedback on this module for anyone who has had issues with this
get_google-images.py
The code in get_google-images.py retrieves Google Image Search results and downloads them into a downloads directory
- Install Google images download modules
pip install google-images-download