SEO Public app not appearing after>1m

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.)

Hey @OkapiSystems,

Sorry for the delayed response – can you share the GitHub repo for your app?

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.

Hey @OkapiSystems,

Great to meet you! Are you able to share a code snippet including the st.set_page_config line and any lines where you are setting the title?

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?

The main script has:

# <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.

Appreciate the help!

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.

Hey @OkapiSystems,

Thank you for sharing this context! I’ve shared this with our Community Cloud engineering team and will update you when I have more info

1 Like

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?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.