Ask HN: Total karmic wealth of all HN?
1–10 of 19 posts
Re: Ask HN: Total karmic wealth of all HN?
#2Since the usernames are not queryable via an integer (e.g. user?id=1235654321) it's not exactly the most trivial of things. You'd have to go through an endless amount of posts, get every possible username from the comments, go through all stories submitted, grab their usernames, and then loop through the HN API and grab karma info.
Re: Ask HN: Total karmic wealth of all HN?
#3Re: Ask HN: Total karmic wealth of all HN?
#4Not an admin, so I can't speak to what they have available. But as a hacker... Since the usernames are not queryable via an integer (e.g. user?id=1235654321) it's not exactly the most trivial of things. You'd have to go through an endless amount of posts, get every possible username from the comments, go through all stories submitted, grab their usernames, and then loop through the HN API and grab karma info.
select sum(karma) from user_data;
If the HN server uses an SQL database and has a table users containing the user names and their karma - and they must have something like that since the karmas are displayed on the profiles.Re: Ask HN: Total karmic wealth of all HN?
#532553783 and counting.
There may be an error in my math.
Re: Ask HN: Total karmic wealth of all HN?
#632553783 and counting.
Re: Ask HN: Total karmic wealth of all HN?
#732553783 and counting.
Re: Ask HN: Total karmic wealth of all HN?
#8Re: Ask HN: Total karmic wealth of all HN?
#932553783 and counting.
Re: Ask HN: Total karmic wealth of all HN?
#1032553783 and counting.