/hnclient

A toy project to play with golang. Handle with care.

Primary LanguageGoApache License 2.0Apache-2.0

hnclient

hnclient is a Hacker News CLI client. It's a toy project to practice writing golang and using gorutines.

Use at your own risk.

Usage

$ ./hn help

hn is a Hacker News CLI client.
You can get the N top, best or new stories from the orange site
right in your console.

If no arguments are passed, you'll get the top 10 stories by default.

Usage:
  hn [flags]
  hn [command]

Available Commands:
  best        get best N stories
  help        Help about any command
  new         get the N newest stories
  top         get top N stories

Flags:
  -h, --help   help for hn

Use "hn [command] --help" for more information about a command.

Sample output

$ ./hn
📝 Some thoughts on the $660k copy of Super Mario Bros
🗣  story by ecliptik | 27 comments | ⭐️ 50
🔗 http://famicomblog.blogspot.com/2021/04/air-raid-has-some-thoughts-on-660000.html
💬 https://news.ycombinator.com/item?id=26940590

📝 Google have declared Droidscript is malware
🗣  story by croes | 252 comments | ⭐️ 460
🔗 https://groups.google.com/g/androidscript/c/Mbh5TZ6YYnA/m/GflwflqaDAAJ
💬 https://news.ycombinator.com/item?id=26956077

📝 Arm Announces Neoverse V1, N2 Platforms and CPUs, CMN-700 Mesh
🗣  story by timthorn | 47 comments | ⭐️ 124
🔗 https://www.anandtech.com/show/16640/arm-announces-neoverse-v1-n2-platforms-cpus-cmn700-mesh
💬 https://news.ycombinator.com/item?id=26955451

📝 Swimlanes.io – generated editable sequence diagrams
🗣  story by smusamashah | 23 comments | ⭐️ 116
🔗 https://swimlanes.io/
💬 https://news.ycombinator.com/item?id=26956728

📝 I forgot about print style sheets (2016)
🗣  story by pcr910303 | 8 comments | ⭐️ 72
🔗 https://www.matuzo.at/blog/i-totally-forgot-about-print-style-sheets/
💬 https://news.ycombinator.com/item?id=26956980

📝 SixtyFPS v0.0.6 (GUI Toolkit in Rust): Now with IDE Support
🗣  story by adamnemecek | 10 comments | ⭐️ 58
🔗 https://sixtyfps.io/blog/v0.0.6-now-with-ide-support
💬 https://news.ycombinator.com/item?id=26958154

📝 The Muse (YC W12) Is Hiring Two Designers Come Join Us
🗣  job by KMinshew | 0 comments | ⭐️ 1
🔗 https://www.themuse.com/jobs/themuse/senior-product-designer
💬 https://news.ycombinator.com/item?id=26958572

📝 Neutron stars may be bigger than expected, measurement of lead nucleus suggests
🗣  story by furcyd | 6 comments | ⭐️ 50
🔗 https://www.sciencemag.org/news/2021/04/neutron-stars-may-be-bigger-expected-measurement-lead-nucleus-suggests
💬 https://news.ycombinator.com/item?id=26957355

📝 My Current HTML Boilerplate
🗣  story by adrian_mrd | 214 comments | ⭐️ 810
🔗 https://www.matuzo.at/blog/html-boilerplate/
💬 https://news.ycombinator.com/item?id=26952557

📝 OpenFlights – airport and airline data
🗣  story by cyberlab | 14 comments | ⭐️ 78
🔗 https://openflights.org/data.html
💬 https://news.ycombinator.com/item?id=26956271

$ ./hn new 5

📝 India Is What Happens When Rich People Do Nothing
🗣  story by pmoriarty | 0 comments | ⭐️ 1
🔗 https://www.theatlantic.com/international/archive/2021/04/india-covid19-moral-failure/618702/
💬 https://news.ycombinator.com/item?id=26959112

📝 Webmention Analytics
🗣  story by brianzelip | 0 comments | ⭐️ 1
🔗 https://mxb.dev/blog/webmention-analytics/
💬 https://news.ycombinator.com/item?id=26959161

📝 Robot Uses AI to Kill 100k Weeds per Hour
🗣  story by deedub | 0 comments | ⭐️ 1
🔗 https://interestingengineering.com/new-farming-robot-uses-ai-to-kill-100000-weeds-per-hour
💬 https://news.ycombinator.com/item?id=26959132

📝 9 factors to keep in mind when selecting an optical payload for a satellite
🗣  story by kartikkumar | 0 comments | ⭐️ 1
🔗 https://blog.satsearch.co/2021-04-27-spotlight-9-factors-to-keep-in-mind-when-selecting-an-optical-payload
💬 https://news.ycombinator.com/item?id=26959162

📝 CC Search to Join Wordpress.org
🗣  story by kgodey | 0 comments | ⭐️ 1
🔗 https://ma.tt/2021/04/cc-search-to-join-wordpress-org/
💬 https://news.ycombinator.com/item?id=26959160