shell pip install newspaper3k python import newspaper source = newspaper.build("https://example.com", language="zh") for article in source.articles: article.download() article.parse() title = article.title text = article.text print("------------------------")


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