Using python-amazon-product-api on Google Appengin

2019-05-04 19:33发布

问题:

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

回答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.



回答2:

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.



回答3:

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



回答4:

App Engine does support lxml:

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