Show HN: Export HN saved links (upvotes) as JSON or CSV
github.com
github.com
I figure since a comment of mine sparked 'saved comments' being a thing that lightning could strike twice...but then I guess the API would need to allow authentication for private data.
It's been like that for a long time I think.
Was excited to as well, was going to write a script that fed this into Pinboard. Maybe I'll code up my own upvoted item scraper later.
Enter your HN account details:
Username: firloop
Password:
Logging in...
Logged in successfully.
Error getting data for page 1
Traceback (most recent call last):
File "export_links.py", line 137, in <module>
main()
File "export_links.py", line 113, in main
if len(tree_title) < 61:
UnboundLocalError: local variable 'tree_title' referenced before assignmentBut, error when grabbing links.
$ python export_links.py
Enter your HN account details:
Username: 0xcmp
Password:
Logging in...
Logged in successfully.
Error getting data for page 1
Error getting data for page 2
Error getting data for page 3
Error getting data for page 4
[...snip]