import json
import pprint
data = urllib.request.urlopen(
    'https://www.googleapis.com/customsearch/v1?key=YOUR_KEY_HERE&cx=017576662512468239146:omuauf_lfve&q=lectures'
    )
Google search with Python