It's trivial to search for a set of keywords in a certain website in a specific date range: in the google search box you enter
desired-kewords site:desired-website
then from the Tools menu you pick the date range.
e.g. "arab spring" search term in www.cnn.com between 1th Jan 2011 and 31th Dec 2013:
As you can see in the second picture there are about 773 results! The search URI looks like this :
The date range could be seen in cd_min and cd_max of the tbs parameter (which appears in URI whenever the tools menu is used).
I would like to get the same functionality programmatically using Google's custom search API client for python.
I defined a custom search engine:
Then tried different suggestions I found on the web/stack overflow:
This is a related question which is left unanswered.
This post about Date range search using Google Custom Search API referred to here and suggests using the 'sort' parameter to do the favour (sort = 'date:r:yyyymmdd:yyyymmdd'). It did not work: "totalResults" is "44900".
This post suggests using date restrict field which does not work as well.
Well! Any working solution?