Top Hacker News stories
TL;DR
About
One run is a snapshot of the Hacker News front page. The official Firebase API has the same list only as bare ids, so that snapshot costs 31 requests there (one for the ids, one per story). Say you posted a Show HN at 8am Pacific: run this every 15 minutes, pick your post out by the item id at the end of comments_url rather than the title, and log rank and points into a sheet. The catch is the start. Every Show HN begins on shownew, and this sees yours only once it reaches the front page. Past rank 30 it drops out again, since page 2 is never loaded. Ask HN posts have no outside link, so url repeats comments_url, and YC job ads carry null points, which makes them easy to drop. Author and age are not captured, so one snapshot cannot tell a fresh story from a slow climber.
Input
n optionalOutput
None
