3 ms·
Show HN: Display all stories and comments for a specific Hacker News user
Hi HN,
I have been exploring the Hacker News API [0] a bit and came up with this simple way of exploring a user's past submissions including the comments [1].
It's been fun to dig through some of the old submissions and reading the comments, so I thought I'd share.
https://simonpure.github.io/?user=pg https://simonpure.github.io/?user=pg
Caveat: For accounts with a lot of submissions, it may take a while to load.
[0] https://github.com/HackerNews/API https://github.com/HackerNews/API
[1] https://github.com/simonpure/simonpure.github.io/blob/main/app.js https://github.com/simonpure/simonpure.github.io/blob/main/a...
- EntreEden 3y agoCool! But can't you already via this from the HN ui?
- greenyoda 3y agoYou can see all of an HN user's stories and comments just by viewing their profile. Click on their user ID, or use a URL like this: https://news.ycombinator.com/user?id=pg https://news.ycombinator.com/user?id=pg Under that profile page, you'll find links for "submissions", "comments" and also "favorites". You can also use HN search's (https://hn.algolia.com https://hn.algolia.com) advanced options to search by user: https://hn.algolia.com/help https://hn.algolia.com/help For example, searching for "california author:pg" gives you: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=california%20author%3Apg&sort=byPopularity&type=story https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
- amelius 3y agoHowever, what I think is a mis-feature is that you can downvote the comments of that user in that view.
- deleted 3y ago[deleted]
- gnicholas 3y agoI've heard that in some systems, downvoting from this view does not affect karma. Does anyone know if that is the case for HN? Seems like it would be a simple experiment to carry out.
- simonw 3y agoHere's a tip that I use a lot: if you want to follow the latest comments on Hacker News thread, you can do so by taking the ID of that thread (from the URL) and constructing a search query like this one: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=story%3A37804111&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... That's a search for "story:37804111" for type "comment" (as opposed to "story") ordered by date. I use this all the time to follow long conversations here - order by most recent comment is a much better way than digging through a huge hierarchy every few minutes to try and figure out what's new. Wrote this up as a TIL here: https://til.simonwillison.net/hacker-news/recent-comments https://til.simonwillison.net/hacker-news/recent-comments