A small program that lets you browse news through the command line
A small program that lets you read news through the command line.
These requirements can be installed together by running
pip install -r requirements.txt
or
pip3 install -r requirements.txt
depending on your system. As stated above, this program requires Python 3.3 or greater.
First, clone the repository:
git clone https://github.com/jbonatakis/news-desk.git
Then, register and get a (free) API key from: https://newsapi.org/
Run the program:
python3 news_desk.py
This will prompt you to enter your API key, which will be saved in a file named key
located in the ~/.nd_config/
directory and read to validate your access to the API each time News Desk is run.
Enter
. This will print out the article text on the command line.r
or refresh
to update the list of articles. This command is not case sensitive.To exit the program and return to your command line, type e
, exit
, q
, or quit
. Again, this is not case sensitive.
-b
, then selecting an article will open it in the browser and copy the article URL to your clipboard.If you would like to contribute to the project, feel free to open a pull request and I will review it as soon as possible.
-b
flag