Revised: Finding Out When Your Library Has New Books You Are Interested In

See a previous post for the background to this one.

As I previously suspected, all my simple Python scripts that used pyamazon, stopped working on April 1st.

Time to fix them. Gene Kim at Tripwire contacted me last week, and gave me some great pointers on how to use pyAWS, the replacement for pyamazon that Kun Xi is working on. Thank you!

Last Sunday, I sat down and started converting my old check_books.py script. In short, I found a bug with pyAWS and reported it. Kun Xi has fixed it and given my permission to included the modified version of ecs.py with this blog post. Thank you too! You should also check back to the pyAWS web site, to get the fix in the official 0.3 release coming soon.

Here's the new version of the check_new_books.py script. If you want to use this, you'll need to adjust the amazonAccessKey, amazonWishListID, emailAddr and libraryURL variables for your specific values.

I note that it doesn't always seem to have an Author attribute for some of the book Item's that are returned after a specific ASIN search. I need to investigate this some more. For now I just catch the AttributeError and move on.

I'll hopefully soon post revised versions of the other Python Amazon scripts I've created.

[]

[]

[]

[]

Comments:

Post a Comment:
Comments are closed for this entry.
About

user12607856

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today