Install Google API Client Library for Python
For more info and documentation:
https://developers.google.com/api-client-library/python/apis/
Installation:
pip install -U google-api-python-client
Create your Google Account
https://accounts.google.com/SignUp?hl=en
Login Google APIs
https://console.developers.google.com/
Create new project
--> Credentials
--> Create new project
Create Credentials, Choose API Key Example:
API key = 'ACzaByCjbjVXlEm1Vl1xakoq-vF5tHdxB8rFiQ'
Go to Library, choose Google+ API, click "ENABLE"
Create Custom Search Engine
https://cse.google.com/cse/create/new
Create New Search Engine, enter sites you want to search Example:
*.huffingtonpost.com
Get Search engine ID
--> Edit search engine
--> Select
--> Search engine ID