I want to search with the "exact size" filter on, I can do it on the
google image search page but can't seam to figure out how to do it
with the AJAX API, if it's possible at all.
So my question is, if possible, how do I do it?
I prefer to use Python, but JavaScript might be acceptable.
Part of the code I'm working with looks like this:
query = urllib.urlencode({'q': query})
urls = []
urls.append('http://ajax.googleapis.com/ajax/services/search/
images?v=1.0&%s' % query)
urls.append('http://ajax.googleapis.com/ajax/services/search/
images?v=1.0&start=4&%s' % query)
urls.append('http://ajax.googleapis.com/ajax/services/search/
images?v=1.0&start=8&%s' % query)
search_responses = []
for url in urls:
try:
u = urllib2.urlopen(url)
search_responses.append(u)
...
I tried adding "&tbs=isch:1,isz:ex,iszw:11,iszh:11" to the url (width:
11, height:11) but it didn't change anything.
--
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.