Unfortunately, the Search API does not support searching within a given 
timeframe. At least, it's not in the documentation.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[email protected]

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 24, 2010, at 2:54 PM, Gabriel wrote:

> I am writing a python script that runs some Google blog searches. I
> wanted to constrain the results so that the posts were in a certain
> timeframe, so I used as_miny and as_maxy. For example:
> 
> url = 'http://ajax.googleapis.com/ajax/services/search/blogs?
> v=1.0&start=%s&scoring=d&as_miny=2008&as_maxy=2009&rsz=large&%s' % (1,
> query)
> 
> search_results = urllib.urlopen(url)
> json = simplejson.loads(search_results.read())
> results = json['responseData']['results']
> 
> However, the results I get are not within this timeframe when I check
> the 'publishedDate' attribute of each result. Is there a simple way to
> search within a timeframe?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to