My public Streamlit Community Cloud app ( https://nychsfilter.streamlit.app/ ) has been live for more than a month but does not appear in Google search results. Per the ‘SEO and search indexability’ page (SEO and search indexability - Streamlit Docs), I set a descriptive page_title (New York City High School Filter) using st.set_page_config. Despite this, when I search by page title or even enter ‘site: nychsfilter.streamlit.app’ in the Google search bar the site does not appear in the search results. Does anyone have any thoughts?
Possible issues: I set the page title by calling a function that appears outside of the main page’s python script, but I’m not sure why that would matter. I also use st.write instead of st.text. Also not sure if that matters. Lastly, the app is public but the repo behind it is not. I hope that is not the issue. (I don’t see why the code needs to be public as long as the site is.)
Thanks for replying-I appreciate the attention even if delayed. I also think we may have met briefly at the New York meetup - thanks for organizing!
With respect to the GitHub repo, while the app is public the repo is private. (Access to the full dataset, which is stored in the repo, is behind a paywall. A sample dataset is available to the general public.) Please advise as to the best way to proceed.
One other follow up question – do you know roughly when you picked the subdomain and set the page title? Was it about the same time that the app went live, or did you complete those steps at a later date?
# <import various modules>
title = 'New York City High School Filter'
header = 'NYC Public High School Filter Tool'
# <some code to set other constants>
nychsf.write_header(title=title, header=header). # This is the first call to a streamlit function - see details below
The write header function is:
def write_header(title, header, page='New York City High School Filter', layout='wide'):
about = 'New York City Public High School Filter Tool v0.1 \r ' \
'Copyright 2024 Okapi Systems, LLC, All Rights Reserved'
icon = 'PageIcon.png'
st.set_page_config(page_title=page, layout=layout, page_icon=icon,
menu_items={'Report a Bug': 'mailto:support@nychsfilter.com?subject=Bug Report', 'About': about})
st.logo(image=icon)
st.title(title)
st.header(header)
return
While I do not call the functions used to authenticate until later, two of the imported modules invoke the following at the top level, outside of the module’s functions:
from linkedin_api.clients.auth.client import AuthClient
# <some code to get secrets and build the redirect_url cited below>
auth_client = AuthClient(client_id=client_id, client_secret=client_secret, redirect_url=redirect_url)
from google_auth_oauthlib.flow import Flow
# <some code to get the client_secrets, set the scopes and build the redirect URL cited below>
flow = Flow.from_client_config(client_secrets, scopes=scopes, redirect_uri=google_redirect_url)
I don’t know if that would interfere with anything from a search engine indexer perspective. It doesn’t for human users.
The site began as a private site so I could test and make sure it worked properly before going public. I flipped the site from private to public on or shortly before April 21, 2024. I picked the subdomain and set the page title before making it public. I don’t remember the exact date, but probably 1-2 weeks prior. The GitHub repo was created March 16, 2024 so definitely not before then.
FYI: I did see that my site is now indexed. I noticed this a few weeks ago, perhaps a week after you last posted. Thanks! Do you know if the work is complete and, if so, what the root cause was?
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.