Skip to content

A CLI tool to get the latest news headlines from various news agencies

Notifications You must be signed in to change notification settings

stevenbraham/news-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a small a CLI program that I created so that I can quickly see newsheadlines in my terminal

Required libraries

Make sure to go get the following libraries:

How to use

Run go build to create a local executable or go install news-reader.

You now have an executable binary program. You can directly run the program from the terminal.

It will ask from which you site you want have news and fetches the 10 latest headlines. You can give a news site as a argument, for example ./news-reader BBC.

Adding rss feeds

After running for the first time, the program creates a websites.yaml file with the list of all feeds.

Currently the following news sites are added as default:

  • BBC
  • CCN
  • RT
  • AlJazeera

To add a new feed, use the following format:

- name: WebsiteName
  url: http://example.com/feed.rss

About

A CLI tool to get the latest news headlines from various news agencies

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages