A Python-based CLI for working with Hacker News.
Requirements can be installed directly by using:
pip install -r requirements.txt
hackernews uses a built-in cookie system. It saves the file
hackernews.py <command> --no-cookies
When cookies are turned off, two additional requests are needed per-command to retrieve proper login info.
Retrieve a user's latest saved items, and print the output as JSON (default):
hackernews.py saved -u 'username' -p 'password'
Retrieve all saved items, and print the output as XML (this might take a while):
hackernews.py saved -all -e xml -u 'username' -p 'password'
Help for the
hackernews.py saved -h