开发者

Using python-amazon-product-api on Google Appengine without lxml [duplicate]

This question already has answers here: Closed 10 years ago.

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


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.


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.


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


App Engine does support lxml:

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜