goose-extractor for python 3.4错误

时间:2016-05-02 09:01:30

标签: python django

尝试pip3 install goose-extractor

获取错误消息:

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-kiim5udg/beautifulsoup/setup.py", line 22
        print "Unit tests have failed!"
                                      ^
SyntaxError: invalid syntax
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kiim5udg/beautifulsoup/

是否存在python 3.4版本? 还有其他类似的套餐吗?

3 个答案:

答案 0 :(得分:2)

goose-extractor目前仅支持python 2.7及更早版本。

使用python 3,您可以使用readability-lxml包,它具有与鹅非常相似的功能集。

答案 1 :(得分:0)

当前版本的goose-extractor是1.0.25,其中要求包含beautifulsoup 3.2.1,但是这个bs包是基于python2.x的,所以你得到错误:调用'中缺少括号'打印“

答案 2 :(得分:0)

为python 3安装goose 3版本

    manager;    sales
    charles;    100,1
    ferdand;    212,6
    aldalbert;  23,4
    chuck;      41,6

链接到PyPi: goose 3