Hi, Iβm having problems displaying a Tweet. This is my code:
And instead of getting the Tweet, this is the result:
Hi, Iβm having problems displaying a Tweet. This is my code:
And instead of getting the Tweet, this is the result:
Hello @davera-017
You can simply embed your tweet link by using shields.io. You can make badges out of shields by providing the link you need to embed and add the badge to the streamlit using the st.write
st.write('''
[![Tweet]("twitter/url?url=https%3A%2F%2Fshields.io")(https://twitter.com/OReillyMedja/status/901048172738482176)
''')
which would look like this :
I have already created a GitHub star badge made from shields.io to use in my streamlit app.
You could refer Shields for more badges
Hope it helps you!
Regards,
Harisankar
Hello @davera-017
Try the following one, there are some changes in the code from the previous one.
st.write('''
[![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2FOReillyMedja%2Fstatus%2F901048172738482176)](https://twitter.com/OReillyMedja/status/901048172738482176)
''')
Output would look like this:
This would work perfectly!
So take a look into this.
Cheers!!
Harisankar
did that work out
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.