试用过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版本?还有其他类似的包吗?
发布于 2016-05-02 17:39:47
goose-extractor目前只支持Python2.7及更早的版本。
在Python3中,您可以使用readability-lxml包,它具有与goose非常相似的特性集。
发布于 2017-03-22 17:13:20
goose-extractor的当前版本是1.0.25,其中的需求包含漂亮的汤3.2.1,但是这个bs包是基于python2.x的,所以你得到了错误:在调用'print‘时缺少括号。
发布于 2018-12-05 11:34:05
https://stackoverflow.com/questions/36978680
复制相似问题