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

丶灬走出姿态 提交于 2019-12-22 08:33:57

问题


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



来源:https://stackoverflow.com/questions/4228904/using-python-amazon-product-api-on-google-appengine-without-lxml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!