We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# 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.
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Found the problem: the "get_top_headlines" function has "en" as default language. Just change it to "None" like the other params.
Anyone else failing the issue still. Tried running the code below but no results
api = NewsApiClient(api_key=<api-key>) head_lines = api.get_top_headlines(category='entertainment', country='gb', language='en')```
No branches or pull requests
->
->
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.
The text was updated successfully, but these errors were encountered: