昨天我安装了feedparser(在OSX 10.5上),它工作正常,但现在它停止工作了.
这是脚本(从feedparser文档复制)
import feedparser
d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
d['feed']['title']
u'Sample Feed'
Run Code Online (Sandbox Code Playgroud)
它告诉我这个:
Traceback (most recent call last):
File "example.py", line 3, in <module>
import feedparser
File "example.py", line 2, in <module>
d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
AttributeError: 'module' object has no attribute 'parse'
Run Code Online (Sandbox Code Playgroud)
但是使用feedparser的实际脚本也停止了工作,同样的错误.
| 归档时间: |
|
| 查看次数: |
2711 次 |
| 最近记录: |