public
Last active

Amazon AWS search for books less than 150 pages in the operating systems category

  • Download Gist
awspages.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13
import ecs
ecs.setLicenseKey('FILLLICENSEKEYHERE')
ecs.setSecretAccessKey('FILLSACCESSKEYHERE')
ecs.setLocale('us')
# O.S. books : node 3756
ecssearch = ecs.ItemSearch('', SearchIndex='Books',
ResponseGroup='Medium',BrowseNode='3756')
for i in range (1,100):
try:
if (int(ecssearch[i].NumberOfPages) < 150):
print ecssearch[i].Title," - ",ecssearch[i].Author
except AttributeError:
print ""

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.