Screenshot of an embedded Tweet - there is a video attached with a native player. All links, hashtags, and user mentions work.
https://files.mastodon.social/media_attachments/files/112/938/843/698/648/144/original/f1284e758c3f1574.png
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 https://github.com/edent/Tweet2Embed
Feedback and pull requests very welcome!
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.