1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
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!

Screenshot of an embedded Tweet - there is a video attached with a native player. All links, hashtags, and user mentions work.
1
4mo
Replies