@@ -0,0 +1,1326 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A#%0A# Copyright 2014 Google Inc. All Rights Reserved.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#      http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%22%22%22Simple command-line example for Custom Search.%0ACommand-line application that does a search.%0A%22%22%22%0A%0A__author__ = 'jcgregorio@google.com (Joe Gregorio)'%0A%0Aimport pprint%0A%0Afrom googleapiclient.discovery import build%0A%0A%0Adef main():%0A  # Build a service object for interacting with the API. Visit%0A  # the Google APIs Console %3Chttp://code.google.com/apis/console%3E%0A  # to get an API key for your own application.%0A  service = build(%22customsearch%22, %22v1%22,%0A            developerKey=%22AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0%22)%0A%0A  res = service.cse().list(%0A      q='lectures',%0A      cx='017576662512468239146:omuauf_lfve',%0A    ).execute()%0A  pprint.pprint(res)%0A%0Aif __name__ == '__main__':%0A  main()%0A

copy paste from Google github acct