Giter Site home page Giter Site logo

jamesallured / hn Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4 KB

A quick and dirty implementation of a Hacker News terminal tool. It returns a list of stories according to the provided 'sort' flag (default top) along with a link to their corresponding Hacker News threads.

License: MIT License

Go 92.82% Makefile 7.18%

hn's Introduction

Simple Terminal Hacker News

A quick and dirty implementation of a Hacker News terminal tool. It returns a list of stories according to the provided 'sort' flag (default top) along with a link to their corresponding Hacker News threads.

Example output:

# ./hn
01 - ACE: Apple Type-C Port Controller Secrets (https://news.ycombinator.com/item?id=25579286)
02 - Visa Advertising Solutions (VAS) Opt Out (https://news.ycombinator.com/item?id=25576113)
03 - C Template Library (https://news.ycombinator.com/item?id=25576466)
04 - Oxford-AstraZeneca coronavirus vaccine approved for use in UK (https://news.ycombinator.com/item?id=25579393)
05 - Pierre Cardin has died (https://news.ycombinator.com/item?id=25569487)
06 - Running BSDs on AMD Ryzen 5000 Series – FreeBSD/Linux Benchmarks (https://news.ycombinator.com/item?id=25580298)
07 - Show HN: Candymail – Email Automation for Node.js (https://news.ycombinator.com/item?id=25578834)
08 - Graph Toy, an interactive graph visualizer using mathematical functions (https://news.ycombinator.com/item?id=25574661)
09 - Messengers of hope: two mRNA Covid-19 vaccines herald a new era for vaccinology (https://news.ycombinator.com/item?id=25577215)
10 - A Generative Grammar for Jazz Chord Sequences (1984) (https://news.ycombinator.com/item?id=25569056)

Build

To build, use the following makefile command:

make build

Usage

# ./hn

Optional flags:

  • -n - number of stories to return (max 500) (default 10)
  • -sort - sort to apply to stories (default "top")

Sort options:

  • top - top stories
  • best - best stories
  • new - new stories

hn's People

Contributors

jamesallured avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.