Skip to content

Instantly share code, notes, and snippets.

@quickcode00
Last active September 6, 2021 14:44
Show Gist options
  • Save quickcode00/65096f739b9860f2e8c82e2c5859b752 to your computer and use it in GitHub Desktop.
Save quickcode00/65096f739b9860f2e8c82e2c5859b752 to your computer and use it in GitHub Desktop.
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