Open hwk06023 opened 1 month ago
# US head_lines = newsapi.get_top_headlines(category='entertainment', country='us') for x in head_lines['articles']: print('title:', x['title']) print('description:', x['description']) print('url:', x['url']) # print('urlToImage:', x['urlToImage']) print('content:', x['content']) print()
->
head_lines = newsapi.get_top_headlines(category='entertainment', country='kr') # or 'jp' or 'cn' .... print(top_headlines) for x in head_lines['articles']: print('title:', x['title']) print('description:', x['description']) print('url:', x['url']) # print('urlToImage:', x['urlToImage']) print('content:', x['content']) print()
Hi. In my case, 'us' is working but 'kr', 'jp', 'cn' .. are not working. Is it not supported originally, or does there seem to be a problem?
Thank you.
I've encountered the same problem. The modul supported all the country codes when I first implemented it. Seems like a new issue to me.
->
->
Hi. In my case, 'us' is working but 'kr', 'jp', 'cn' .. are not working. Is it not supported originally, or does there seem to be a problem?
Thank you.