在App Engine上的Python LXML? [英] python lxml on app engine?

查看:152
本文介绍了在App Engine上的Python LXML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用在谷歌应用程序引擎蟒蛇LXML? (或者我必须使用美丽的汤?)

Can I use python lxml on google app engine? ( or do i have to use Beautiful Soup? )

我已经用美丽的汤开始,但它似乎慢。我刚开始与来自其他网站的屏幕抓取数据的想法发挥到建立某种形式的混搭。

I have started using Beautiful Soup but it seems slow. I am just starting to play with the idea of "screen scraping" data from other websites to create some sort of "mash-up".

推荐答案

修改:如果你的 AppEngine上,在 LXML 库<一个用python2.7 href=\"http://$c$c.google.com/appengine/docs/python/python27/newin27.html#Supported_Third-Party_Libraries\">is支持。

简短的回答:你不能

从AppEngine上的文档:
为Python环境书面申请code必须是用Python编写的专,用C语言扩展不支持

From AppEngine's docs: "Application code written for the Python environment must be written exclusively in Python. Extensions written in the C language are not supported"

现在是否必须使用BeautifulSoup与否,实际上取决于你打算如何使用它。更新详细的问题,我会尝试与其他建议在这里更新如果可能的话。

Now whether you must use BeautifulSoup or not, it really depends on how you plan to use it. Update the question with details and I'll try to update here with other suggestions, if possible.

这篇关于在App Engine上的Python LXML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆