Skip to main content

A command line tool for displaying and opening links to the current best stories from news.ycombinator.com (Hacker News)

Project description

daily_hn

Tests Linux OSX Python

Demo aPNG

Description

A command line tool for displaying and opening links to the current best stories from news.ycombinator.com (Hacker News).

You can find the best stories page this program parses here!

Dependencies

Installation

To download, click on 'Code' to the top right, then download as a zip file. You can unzip using your preferred program.

You can also clone the repository using:

git clone https://github.com/Rolv-Apneseth/daily_hn.git

Next, install the requirements for the program.

In your terminal, navigate to the cloned directory and run:

python3 -m pip install requests beautifulsoup4

Then, to place the daily_hn script at /usr/local/daily_hn:

sudo make install

Now, to launch the program in your terminal simply run daily_hn

Windows

Install the requirements for the program.

In your terminal, navigate to the cloned directory and run:

pip install beautifulsoup4 requests windows-curses

To launch the program, navigate to the project directory and run:

python daily_hn.py

Usage

With the curses UI (default), you can open up stories (uses the default browser) by pressing the shortcut key to the left of that story. Navigate up and down using either j and k for fine movements or { and } for bigger jumps. To quit, press q.

To simply print out a list of stories (links being clickable depends on your terminal emulator), provide the -p flag

License

MIT

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

daily_hn-0.1.2.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

daily_hn-0.1.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

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