3 ms·
The "favorites" feature is amazing and just rightly inconspicuous. On my website, https://mihir.ch/#hn https://mihir.ch/#hn, I've been collecting and displaying
by plibither8 6y ago
The "favorites" feature is amazing and just rightly inconspicuous. On my website, https://mihir.ch/#hn https://mihir.ch/#hn, I've been collecting and displaying my favorited posts and comments from an API I created for this purpose only.
The API: https://hn-faves.now.sh https://hn-faves.now.sh
Source: https://github.com/plibither8/hn-faves-api https://github.com/plibither8/hn-faves-api
- gitgud 6y agoThanks for sharing your source too! I was curious how you got a web scraper on a small now.sh server (45mb) Usually I'd use puppeteer, but that would make it like 400mb. I've never heard of [1] x-ray, it looks a great package for lightweight containers! [1] https://www.npmjs.com/package/x-ray https://www.npmjs.com/package/x-ray