I'm using Google's Custom Search API to get search results from across the web. All I want is to grab the snippets from the results and put them into a list. I'm pretty sure it's a JSON response but I have no idea how to handle this or parse it, and the documentation seems miles over my head. Here's my code so far. How do?
import pprint
from apiclient.discovery import build
service = build("customsearch", "v1",
developerKey="----------")
res = service.cse().list(
q='what was the most downloaded android app of 2008',
cx='-------------my custom engine--------------',
googlehost='google.com',
).execute()
pprint.pprint(res)