I teach a course in Python and I use streamlit community cloud when students publish their projects (they love it and I love it)! When I post a link to their project on, say, LinkedIn, I get to see a beautiful app preview of their application. The same app previews appear on the streamlit galley page: App Gallery • Streamlit
These previews seem to be auto-generated by streamlit community cloud and I would love to be able to host a gallery of student projects where these app previews are displayed on my own site. How can I do this?
The previews are indeed automatically generated and are a “share preview” the same as social media sites use to post link previews.
When I inspected the URLs of the preview images, it looks like they are based on app id strings, rather than the app URLs. So I believe there would be a little work to scrape them yourself. You can alternatively use an API or service that grabs previews for you. (Or post the links on a social site so you can harvest the preview images manually.)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.