Last active
September 6, 2021 14:44
-
-
Save quickcode00/65096f739b9860f2e8c82e2c5859b752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = 'https://newsapi.org/v2/top-headlines/' | |
articles = news_api_request(url, apiKey=api_key, sortBy='publishedAt', country='us') | |
summaries = summarize_news_api(articles) | |
print(summaries[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment