4

Possible Duplicate:
Amazon API library for Python?

I'm wanting to use the python-amazon-product-api wrapper to access the Amazon API:

http://pypi.python.org/pypi/python-amazon-product-api/

Unfortunately it relies on lxml which is not supported on Google Appengine.

Does anyone know a workaround? I'm only looking to do basic stuff with the API so could I use Elementtree instead? I'm a newbie so using anything other than how it comes out of the box is still a challenge :)

Thanks Tom

Community
  • 1
  • 1
tomcritchlow
  • 789
  • 2
  • 11
  • 28

4 Answers4

1

You could try to use this fork.

This is a minor fork of the python-amazon-product api located at:

http://bitbucket.org/basti/python-amazon-product-api/wiki/Home

That library uses lxml which is disallowed by google app engine. This fork replaces lxml with BeautifulSoup.

systempuntoout
  • 69,075
  • 45
  • 164
  • 239
  • Thank you very much, I'll give that a try. – tomcritchlow Nov 19 '10 at 20:16
  • Thanks for this - I've installed and trying to use it but I seem to only be getting empty results. Any suggestions on how to debug which bit is going wrong would be greatly received! Or perhaps some examples using this version I could check against? :) Thanks – tomcritchlow Nov 19 '10 at 20:40
1

Just discovered your question. If you still want to use python-amazon-product-api on GAE, follow the instructions here:

http://packages.python.org/python-amazon-product-api/use-your-own.html

The next release of the API (version 2.5 will be released within the next few weeks) is going to support non-lxml parsing out of the box.

Sebastian
  • 1,082
  • 9
  • 26
0

As of yesterday (Feb 27 2012) lxml should be available - see here: http://googleappengine.blogspot.com/2012/02/announcing-general-availability-of.html

Joscha
  • 4,603
  • 1
  • 25
  • 32
0

App Engine does support lxml:

http://code.google.com/appengine/docs/python/python27/using27.html#Configuring_Libraries

alex
  • 2,450
  • 15
  • 22