Using python-amazon-product-api on Google Appengin

2019-05-04 19:06发布

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

4条回答
爷的心禁止访问
2楼-- · 2019-05-04 19:33

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

查看更多
男人必须洒脱
4楼-- · 2019-05-04 19:52

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.

查看更多
疯言疯语
5楼-- · 2019-05-04 19:52

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.

查看更多
登录 后发表回答