newsapi-cli
A command line application for displaying news headlines, written in Python.
Getting Started
Prerequisites
Installing
Newsapi-cli is on PyPI so it can be installed with pip.
$ pip install newsapi-cli
To upgrade use the -U flag.
$ pip install -U newsapi-cli
Alternatively get the source and install locally.
$ pip install -e ./newsapi-cli/
Adding your API key
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 YOUR00API00KEY00GOES00HERE
Using newsapi-cli
Usage:
news sources
news <source>
news search <keyword>
news -h | --help
news --version
Display a list of all news sources
$ news sources
Get headlines from a specific source
$ news <source>
Get headlines related to a keyword
$ news search <keyword>
Example
Get news headlines from the bbc-news source.
$ news bbc-news
Get top news headlines for Great Britain.
$ news gb
Get top business news headlines for Great Britain.
$ news gb/business
Get top headlines about apple.
$ news search apple
Built With
License
This project is licensed under the MIT License
Metadata
Release files for newsapi-cli 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newsapi-cli-1.2.1.tar.gz | 4.8 kB | Without provenance | Details for newsapi-cli-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newsapi_cli-1.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for newsapi_cli-1.2.1-py2.py3-none-any.whl |
Total release size: 12.9 kB
Release files / newsapi-cli-1.2.1.tar.gz
| Download URL | newsapi-cli-1.2.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df91a305d6a74ac3548a17b5fc9c0af575a3be04f8c037893548d5b8465191e5
|
|
BLAKE2b-256 checksum How to use checksums |
173567b903cb2400e2d5b9aa8416dc0eb9bb60f68fe2d934316f9cf08d10a0a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/33.1.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
|
Release files / newsapi_cli-1.2.1-py2.py3-none-any.whl
| Download URL | newsapi_cli-1.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
05b2a50360728cf819dd8a24701e44418d627b9896fc7847b54c3436e9c77d87
|
|
BLAKE2b-256 checksum How to use checksums |
b172f87982223df44ed9563e5fbe4e8634c2a684bd4ce6683b448728efe0c1c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/33.1.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
|
Security for newsapi-cli 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.