我試圖從新聞機構刮來的文章,但我無法弄清楚如何得到一篇文章的作者使用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