Skip to main content

A newsapi.org command line program in Python.

Project description

PyPI version

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

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 headlines about apple.

$ news search apple

Built With

Authors

License

This project is licensed under the MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newsapi-cli-1.1.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file newsapi-cli-1.1.1.tar.gz.

File metadata

File hashes

Hashes for newsapi-cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d0e79459fb7c24ca24cf2147bfbbf1d1abde88d82818d42c1200000fd20950e9
MD5 7843f41d9d5ba7dbf303f359506ce886
BLAKE2b-256 6718901af1c81da8a7d84faca4777db24ad56ed8eaaad274d8516b12dd7a8da5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page