2 ms·
Which official API? And... the saved articles are not public. If you are referring to the new hn.algolia.com this is far (rate limit?) from being a data liberat
by wslh 13y ago
Which official API? And... the saved articles are not public. If you are referring to the new hn.algolia.com this is far (rate limit?) from being a data liberation initiative. Even Google and Facebook are much better.
- minimaxir 13y agoWith the Algolia API, you can request 1000 stories or 1000 comments per request. I don't think you'll hit the rate limit. :P Here are your 1000 out of your 1248 comments: https://hn.algolia.com/api/v1/search_by_date?tags=comment,author_wslh&hitsPerPage=1000 https://hn.algolia.com/api/v1/search_by_date?tags=comment,au... And here are 1000 out of your 1548 submitted stories: https://hn.algolia.com/api/v1/search_by_date?tags=story,author_wslh&hitsPerPage=1000 https://hn.algolia.com/api/v1/search_by_date?tags=story,auth... You can pagenate each endpoint on the created_at_i parameter to get the rest. I can write up a data liberation script if you want.
- wslh 13y agoThanks! I also need to web scrape HN to retrieve my saved articles. It will be useful to use users credentials with the API.