3 ms·
There's a cheat to work around that limit: use the created_at_i parameter. Example: https://github.com/minimaxir/hacker-news-download-all-stories/blob/master/h
by minimaxir 12y ago
There's a cheat to work around that limit: use the created_at_i parameter.
Example: https://github.com/minimaxir/hacker-news-download-all-stories/blob/master/hacker_news_getallstories.py https://github.com/minimaxir/hacker-news-download-all-storie...
- gwern 12y agoI don't know Python, so I'm not sure what your source code is doing. At a guess, you've hacked together some sort of repeated queries thing with a time-window?
- minimaxir 12y ago> Get 1000 entries and process them. > Take the timestamp of the last entry. > Requery the API, asking for articles made before that timestamp Repeat.
- jaredsohn 12y agoIf you want to get data for a single user through Algolia's API via the commandline, you could also use https://github.com/jaredsohn/hnuserdownload https://github.com/jaredsohn/hnuserdownload. It uses the same technique as minimaxir's code (a post of his was the inspiration.)