Sitemap

Member-only story

How to Embed Tweets on Streamlit Web Application

3 min readNov 30, 2021

--

Embedding tweets from Twitter within our web application can be both visually aesthetic and informative for our audiences. Here's only few lines of python codes to achieve this goal.

👨🏾‍💻 GitHub ⭐️| 🐦 Twitter | 📹 YouTube | ☕️ BuyMeaCoffee | Ko-fi💜

Probably, you have already noticed, that Notion has it's unique feature of embedding any type of content or service with url. One of them is embedding tweets. How about implementing this similar feature in your Streamlit Web Application ?

1. Twitter's oEmbed API

Twitter has provided the developers with ample oppurtunity to play around with it's API features, popularly known as Twitter Developer Platform. Among the several avaialable APIs, we will use the oEmbed API for embedding our tweet in our Streamlit Web Application.

Using the API

2. Streamlit Components API

--

--

Avra
Avra

Written by Avra

Databutton . Prev : PhD, Biophysics

Responses (1)