Created
January 28, 2011 20:37
-
-
Save huitseeker/800899 to your computer and use it in GitHub Desktop.
Amazon AWS search for books less than 150 pages in the operating systems category
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment