Terence Eden

OK gang! This is ready for you to test.

python tweet2html.py --css 1234

That will take a Twitter ID and return HTML and CSS for you to embed in your website with no calling back to Twitter.

Features:
๐Ÿ—ฃ Avatars inlined as Base64 WebP
๐Ÿ“ธ All attached photos inlined
๐ŸŽฅ Video poster inline, <video> to original source
๐Ÿ”— Hyperlinks don't use t.co
#๏ธโƒฃ Hashtags and @ mentions linked
๐Ÿ•ฐ Semantic time
โ™ฅ and ๐Ÿ—จ counts

Try it out at github.com/edent/Tweet2Embed

Feedback and pull requests very welcome!

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Simon Willison

@Edent any chance it could handle tweet threads in the future?

I have some /epic/ threads I want to archive, 100+ tweets chained together, most of which are themselves quote-tweets

This one for example (only properly visible if you are signed in to Twitter) twitter.com/simonw/status/1077

1
4mo
Replies