我正在尝试从新闻机构抓取文章,但我不知道如何使用 python-goose 获取文章的作者。我已经阅读了文档、源代码并搜索了谷歌。
from goose import Goose
def getArticle(url):
g = Goose()
article = g.extract(url=url)
print article.title
# print article.author
# print article.writer
那么,有没有一种内置的方法可以使用 python-goose 提取文章的作者?
python-goose 代码和文档链接:http: //github.com/grangier/python-goose