Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mazulo/pynews_cli
A Python CLI to browse news from Hacker News (and others, in the near future)
https://github.com/mazulo/pynews_cli
cli hackernews news python
Last synced: about 2 months ago
JSON representation
A Python CLI to browse news from Hacker News (and others, in the near future)
- Host: GitHub
- URL: https://github.com/mazulo/pynews_cli
- Owner: mazulo
- License: mit
- Created: 2016-02-09T03:10:15.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-05-23T05:14:10.000Z (over 1 year ago)
- Last Synced: 2024-09-15T05:51:21.457Z (4 months ago)
- Topics: cli, hackernews, news, python
- Language: Python
- Homepage: https://pypi.python.org/pypi/PyNews
- Size: 30.3 KB
- Stars: 8
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
==========
pynews-cli
==========A Python CLI to browse news from Hacker News (and others, in the near future). Also is a Python implementation of the awesome `hn-cli `_.
Installing
----------Via pip
.. code-block:: bash
$ pip install pynews
You can also clone this project and install via setup.py
.. code-block:: bash
$ git clone [email protected]:mazulo/pynews_cli.git
$ cd pynews_cli/
$ python setup.py installUsage Example
-------------- Get Top Stories:
.. code-block:: bash
$ pynews -t 10 # or
$ pynews --top-stories 10
# This will show the 10 first *top* stories from the list of 500.- Get New Stories:
.. code-block:: bash
$ pynews -n 10 # or
$ pynews --news-stories
# This will show the 10 first *new* stories from the list of 500.See it in action
----------------.. image:: http://wstaw.org/m/2016/02/16/GIFrecord_2016-02-16_014532.gif
:height: 552px
:width: 610px
:alt: Usage
:align: center