Hacker News new | ask | show | jobs
by flomei 2661 days ago
I built this little Tweet-to-Screenshot-service last weekend and thought that maybe some of you might find it interesting or helpful.

Basically it's fetching data from the Embed API/service, piping it to a headless chrome (gives the best render result IMHO) and optimizing the output with Imagemagick and optipng.

Screenshots will be saved after their first generation to improve delivery speed, but will, right now, not be updated after that, so "like count" and more will not be updated. Might look into this as an improvement for v1.1.

Once a Tweet is deleted, the screenshot will also be deleted on the next call. While I find this unfortunate from the point of archiving tweets, I think it's necessary so people don't misuse this to mirror content which is considered to be harmful or illegal.

Next to using the website to generate an image, you can also directly call it. Take the link of a tweet and replace twitter.com with twttrshot.de. The result will be an image you could hotlink or save.

Feel free to play with and use it and drop me a line (mail address is at the bottom of the site) if you find a bug or something else.