4 ms·
I made an API for favorites a while back. https://github.com/reactual/hacker-news-favorites-api https://github.com/reactual/hacker-news-favorites-api Here's a
by sbr464 7y ago
I made an API for favorites a while back.
https://github.com/reactual/hacker-news-favorites-api https://github.com/reactual/hacker-news-favorites-api
Here's an example query:
https://reactual.api.stdlib.com/hnfavs/?id=sbr464&limit=1 https://reactual.api.stdlib.com/hnfavs/?id=sbr464&limit=1
- gabrielsroka 7y agoOk, now that's really smart! Would a client using your API paginate to fetch, say, 50 pages? When I tried it using ?limit=50, I got a 504 error. Thanks! (Edit, never mind, I see you explain it in the readme.)
- sbr464 7y agoI had made it pretty quickly, the limit would be too large, thats 50*30, you may need to provide an offset and make a few requests.
- wildduck 7y agoInteresting that it is using x-ray, seems like x-ray is still using PhantomJS as the plugin, is PhantomJS deprecated? Would it be using Puppeteer instead?