A command line application for displaying news headlines, written in Python.
Newsapi-cli is on PyPI so it can be installed with pip.
$ pip install newsapi-cliTo upgrade use the -U flag.
$ pip install -U newsapi-cliAlternatively get the source and install locally.
$ pip install -e ./newsapi-cli/To begin you will need to add your API key. If you do not have an API key you can get one free from News API.
$ news api YOUR00API00KEY00GOES00HEREUsage:
news sources
news <source>
news search <keyword>
news -h | --help
news --versionDisplay a list of all news sources
$ news sourcesGet headlines from a specific source
$ news <source>Get headlines related to a keyword
$ news search <keyword>Get news headlines from the bbc-news source.
$ news bbc-newsGet top news headlines for Great Britain.
$ news gbGet top business news headlines for Great Britain.
$ news gb/businessGet top headlines about apple.
$ news search appleThis project is licensed under the MIT License