Show HN: CLI for Hacker News https://ift.tt/Ck8MUPF

Show HN: CLI for Hacker News Hi HN! I've built hnterminal, a pip package that lets you browse, upvote, and comment on HN from terminal: $ pip install hnterminal $ hnterminal hnterminal is an interactive REPL environment with commands like "get_front_page", "get_tree", "upvote", "reply_to", etc, each of which supports rich arguments and comes with full help documentation. On the read side, hnterminal uses the HN API to construct front page and comment trees. On the write side, it reads the webpage and constructs an API response from parsed information. Unfortunately, a write API does not exist for HN (that I know of). Login is accomplished with a login cookie that is only stored in memory as it runs. You don't need to login to browse HN, its only for upvotes and commenting. https://ift.tt/D1LPk9K March 26, 2023 at 04:23PM

Comments

Popular posts from this blog