HN Saved Links Export
This is a python script to export your saved links from Hacker News . What’s a saved link, you ask? Any story that you upvote on HN is added to your saved links. You can access them from
<username> is your HN username.
This script depends on
requestspackages, which should be installed by default on most systems. If not, install them like so:
$ pip install -r requirements.txt
You might have to use
sudowith that command on Linux.
Run the script and enter your HN login credentials.
$ python export_links.py Enter your HN account details: Username: amjd Password: [password will be hidden]
After all the links are processed, you will be asked to enter an output file name. Use any name with the extension
.csv, or leave blank to go with the default
links.json. The output file will be saved in the appropriate format.
P.S.: Your username and password are 100% safe and are sent over HTTPS. You can study the source code of this small script to verify that.
- Add CLI options
HN Saved Export by thomaskcr
If you think of any improvements, create an issue or send a pull request.