Login is not supported by the Hacker News API.
As a workaround clone and run this repository locally, and use the cookie safely in an environment variable.
- Clone the repo.
- Install dependencies.
- Login to Hacker News.
- Copy the user cookie.
- Paste the cookie into HN_COOKIE environment variable.
- Run the local server:
node . - Open localhost:3000 in a browser.
For full instructions see the README.