newspaper4k icon indicating copy to clipboard operation
newspaper4k copied to clipboard

Cannot download the text or top image for Chinese news

Open AndyTheFactory opened this issue 2 years ago • 1 comments

Issue by bq-chen Mon Feb 11 18:55:59 2019 Originally opened as https://github.com/codelucas/newspaper/issues/676


I've tried a Chinese news link, but I get nothing as top_image or even the text of the news. Could you please guide what might have gone wrong and how to fix it? Does your api actually work for Chinese news?

>>> from newspaper import Article
>>> url = "https://www.toutiaoabc.com/index.php?app=news&act=view&nid=697665"
>>> article = Article(url)
>>> article.top_image
''
>>> article.text
''
>>> article
<newspaper.article.Article object at 0x106b90978>
>>> article.publish_date
''
2019-02-11 1 55 20

AndyTheFactory avatar Oct 24 '23 14:10 AndyTheFactory

https://www.toutiaoabc.com/index.php?app=news&act=view&nid=1191487

AndyTheFactory avatar Nov 20 '23 20:11 AndyTheFactory