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.

Reply via email to