是否可以在Google App Engine上使用Python lxml? [英] Is it possible to use Python lxml on Google App Engine?

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

问题描述

我可以在Google App Engine上使用Python lxml吗? (或者我必须使用美丽汤吗?)

Can I use Python lxml on Google App Engine? (or do I have to use Beautiful Soup?)

我已经开始使用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".

推荐答案

EDIT :lxml简短答案:您不能.

从AppEngine的文档中: 为Python环境编写的应用程序代码必须专门用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.

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

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