我试图从新闻机构刮来的文章,但我无法弄清楚如何得到一篇文章的作者使用python鹅。我已阅读文档,源代码和搜索谷歌。我如何得到一篇文章的作者使用蟒蛇
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的文章的作者?
链接,蟒蛇鹅代码和documenation:http://github.com/grangier/python-goose