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