python import newspaper newspaper.languages.registry.register("zh", "newspaper.article.ArticleChinese") source = newspaper.build("https://example.com", language="zh", memoize_articles=False) article_urls = source.article_urls() for url in article_urls: article = newspaper.build_article(url) article.download() article.parse() title = article.title authors = article.authors publish_date = article.publish_date top_image = article.top_image text = article.article_text print()


上一篇:
下一篇:
切换中文