title: Calling Google's Custom Search API via Python
body: <p>I am writing in Python a module that will query Google's Custom Search API and return all listings of domain 'example.com'</p>
  
  <p>I Have been reading instructions at <a href="https://code.google.com/apis/customsearch/v1/getting_started.html" rel="nofollow">https://code.google.com/apis/customsearch/v1/getting_started.html</a> and am a little stumped at the moment.</p>
  
  <p>Are my assumptions listed below correct?</p>
  
  <p>For example, to search for results that has 'example.com' in the URL, the query is:</p>
  
  <p>*'https://www.googleapis.com/customsearch/v1?key=my_key&amp;cx=017576662512468239146:omuauf_lfve&amp;q=site:example.com'*</p>
  
  <p>*<strong>key=my_key:*</strong> value of key given by google</p>
  
  <p><em><strong>cx=017576662512468239146:</em></strong> name of the search engine (google)? Is this correct?</p>
  
  <p>*<strong>omuauf_lfve:*</strong> I have no idea what this is</p>
  
  <p><em><strong>q=site:example.com:</em></strong> This should return all results with 'example.com'; e.g. www.a.example.com, b.example.com, example .com</p>