()
| 28 | |
| 29 | |
| 30 | def main(): |
| 31 | # Build a service object for interacting with the API. Visit |
| 32 | # the Google APIs Console <http://code.google.com/apis/console> |
| 33 | # to get an API key for your own application. |
| 34 | service = build( |
| 35 | "customsearch", "v1", developerKey="<YOUR DEVELOPER KEY>" |
| 36 | ) |
| 37 | |
| 38 | res = ( |
| 39 | service.cse() |
| 40 | .list( |
| 41 | q="lectures", |
| 42 | cx="017576662512468239146:omuauf_lfve", |
| 43 | ) |
| 44 | .execute() |
| 45 | ) |
| 46 | pprint.pprint(res) |
| 47 | |
| 48 | |
| 49 | if __name__ == "__main__": |