Skip to content

Joerndm/newsapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newscatcher

Demo of the Newscatcher API

Search multi-language worldwide news articles published online with NewsCatcher's News API

In this demo I'm getting news articles regarding Python and Excel

Files

  • newsapi.py
  • requirements.txt
  • config.ini
  • extracted_news_articles.csv
  • .gitignore

API

You have to registry for a API key to get this to work.

It is free and you do it at: newscatcherapi.com

When you have confirmed your email, you get access to your API key

You have to put your API key in the config.ini file:

[newsreader]
api_key = o1xxxxxxxxxxxxxxxxxxxxxxxxxxxx7wY

The config.ini file is include in .gitignore

How to run

  • Clone this GitHub Repository to your local computer
  • Make a new Virtual Environment in the GitHub folder - news_env
  • cd into news_env
  • Activate the Virtual Environment
    • .\Scripts\activate (Windows)
    • bin/activate (macOS)
  • cd to the folder with the requirements.txt file
  • Install the necessary modules from the requirements.txt file
    • pip3 install -r requirements.txt
  • Run newsapi.py

Note: Make sure that the .gitignore file include your Virtual Environment - news_env and config.ini

Links

About

Use the newscatcher api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%