@ferdy Thanks for your reply and the suggestion to leverage Lighthouse and examine the app’s performance. That said, my biggest concern right now is with getting the site indexed by the search engines. I can do as much as I want with keyword optimization, renaming, etc., but this will only help if the site is indexed in the first place. Since my intent is to commercialize the page I very much want it to be discoverable.
When I query “site:nychsfilter.streamlit.app
” Google tells me, “Your search - "site:nychsfilter.streamlit.app" - did not match any documents.
” i.e., it will never come back in any search - Top 1, Top 20, Top 200, Top 20,000 because it is not in their index at all.
Given that all public Streamlit apps are supposed to be indexed within a week and I am setting a page_title with st.set_page_config I expect it to show up somewhere. What I am really looking for is a diagnosis as to why it is not being indexed.
@ferdy You mentioned you also have apps that do not appear in “site: <sitename>
”. Do you know what differentiates these apps from the ones that do appear?
Google has options to request a site be indexed (Ask Google to Recrawl Your Website | Google Search Central | Documentation | Google for Developers), but this first requires site ownership verification (Managing owners, users, and permissions - Search Console Help).
Google provides several ownership verification options but they are hard to do with a Streamlit Cloud hosted app. One method is to put a particular html file on the site. But Streamlit apps are written as Python files. I created a subpage to my app whose .py file resolves, when rendered online, to the filename Google expected with the contents it expected rendered using st.write or st.text. This did not work. Another option is to put a particular meta tag in the page header but, as far as I can tell, we do not have this level of control with Streamlit. Other options involve Google Analytics and Google Tag Manager. I do not use these at present but perhaps I will need to.
Incidentally, if I search for “nychsfilter
” on Google the first result is my Streamlit forum post above asking for help getting the site indexed. If I search for “New York City High School Filter
” on Bing the first thing that comes up is a YouTube video I posted about the tool. So once the site gets indexed I’m pretty confident it will turn up in search results.
Anyone aiming to commercialize a Streamlit Community Cloud hosted app should be aware they may encounter similar search indexing challenges too.