HACKER Q&A
📣 leemailll

How to download comments of my favorite submission on HN


Does anyone have a tool for this?


  👤 tgragnato Accepted Answer ✓
I'd start with a query like this (https://www.graphqlhub.com/playground?query=%7B%0A%20%20hn2%...).

But if you want recursion you might need to patch the schema (https://github.com/clayallsopp/graphqlhub).


👤 swiley
Is there a reason curl and either awk or the combination of htmltidy and xmlstarlet wouldn’t work?

👤 darrenwestall
File -> Save Page As

Or is that too simplistic?


👤 algaeontoast
I'm actually working on a project for this haha - curious if anyone has suggestions on a data-structure to archive comment threads?

👤 breakerbox
Someone on HN made a github project called Monolith. It’s a command line thing. Go check it out and see if it will accomplish what you want

https://github.com/Y2Z/monolith