3 ms·
I looked at my overall karma once per minute and keeping a running total in a text file as well as the increase/decrease from the last file. For comments I wen
by dsfyu404ed 7y ago
I looked at my overall karma once per minute and keeping a running total in a text file as well as the increase/decrease from the last file.
For comments I went to https://news.ycombinator.com/threads?id=dsfyu404ed https://news.ycombinator.com/threads?id=dsfyu404ed and whatever URL the "more" link was, found every comment of mine that was < 1 day old and then every comment not by me that was a reply to one of those and then listing the ids of additional comments by me and additional replies to my comments for that minute. Comments were tracked by ID to avoid duplicates.
Pages were grabbed with wget and all the parsing was done with the standards linux/bash utilities
- saagarjha 7y agoFYI, Hacker News has an API: https://github.com/HackerNews/API https://github.com/HackerNews/API