Calling Google's Custom Search API via Python
Posted
by
user353829
on Stack Overflow
See other posts from Stack Overflow
or by user353829
Published on 2010-12-21T22:53:21Z
Indexed on
2010/12/21
22:54 UTC
Read the original article
Hit count: 159
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
© Stack Overflow or respective owner