Streamlit app is placed in Google, but the title that I display is not in Google
This text is displayed on Google. You need to enable JavaScript to run this app
I put it and added the title to it, why the title that I chose is not displayed in Google
please guide me
Please help me, what can I do to make the title that I put in google search
written instead of title
You need to enable JavaScript to run this app
How can I solve this problem?
Can you show a minimal sample code that can duplicate the issue?. Let us try that.
These codes, please see what I can do to display the title in Google
import streamlit as st
import sqlite3
from streamlit_option_menu import option_menu
apptitle="خدمات پی وی سی - رمکان"
st.set_page_config(page_title=apptitle, page_icon="https://namapoush.ir/wp-content/uploads/2021/06/WhatsApp-Image-2021-06-05-at-12.42.50.jpeg",layout="wide")
st.title("خدمات پی وی سی - رمکان")
con=sqlite3.connect('sql/picscols.db')
cur=con.cursor()
cur.execute('CREATE TABLE IF NOT EXISTS pics(id TEXT, img BLOB, note TEXT)')
selected = option_menu (
menu_title=None,
options=["تماس با ما","ورود ادمین","صفحه اصلی"],
icons=["envelope","book","house" ],
menu_icon="cast",
default_index=2,
orientation="horizontal",
styles={
"nav-link":{
'font-family': 'Courier New' 'Courier' 'monospace'
},
}
)
st.markdown("""
* بهترین و جدیدترین طرح های PVC با بهترین قیمت
* امکان نصب در سر تا سر جزیره قشم
""")
with st.expander("خدمات پی وی سی - رمکان",expanded=True):
col1,col2=st.columns(2)
with col1:
st.write("خدمات و اجرای نصب pvc با طرح های مختلف - در سر تا سر جزیره قشم")
with col2:
st.video("video.mp4")
with open('c.css') as f:
st.markdown(f'<style>{f.read()}</style>' ,unsafe_allow_html=True)
if selected == "ورود ادمین":
username = st.text_input(label="نام کاربری",placeholder="Username")
password = st.text_input(label="پسورد",placeholder="password",type="password")
btnLogin = st.button("ورود")
if username == "ahmad" and password == "a09017451883Z":
st.success("خوش آمدی احمد ژرف")
selected = option_menu(options=["پست های ادمین"],
menu_title=""
)
elif username or password == "admin":
st.error("لطفا درست وارد کنید")
if selected == "پست های ادمین":
st.success("توجه : لطفا با اضافه کردن محصول محصولات خود رو کامل پر کنید (عکس محصول , کد محصول , نام محصول) این ها نباید خالی باشد")
st.error("هشدار : کد و نام محصولات شما نباید مثل محصولات دیگه ای که اضافه میکنید باشد. کد محصولات رو با اعداد انگلیسی و از شماره بالا به پایین شروع کنید . مانند : ( از 999 شروع کنید به پایین) ")
if st.button('اضافه کردن محصول'):
cur.execute('INSERT INTO pics(id, img, note) VALUES(?,?,?)', ('', '', ''))
con.commit()
st.write('---')
for row in cur.execute('SELECT rowid, id, img, note FROM pics ORDER BY id'):
with st.form(f'ID-{row[0]}',clear_on_submit=True):
imgcol, notecol = st.columns([3, 2])
id=notecol.text_input('کد محصول', row[1])
note=notecol.text_area('نام محصول', row[3])
if row[2]:
img=row[2]
imgcol.image(row[2])
file=imgcol.file_uploader('تصاویر', ['png', 'jpg', 'gif','jpeg', 'bmp'])
if file:
img=file.read()
if notecol.form_submit_button('ذخیره محصول'):
cur.execute(
'UPDATE pics SET id=?, img=?, note=? WHERE id=?;',
(id, img, note, str(row[1]))
)
con.commit()
st.experimental_rerun()
if notecol.form_submit_button("حذف محصول"):
cur.execute(f'''DELETE FROM pics WHERE rowid="{row[0]}";''')
con.commit()
st.experimental_rerun()
if selected == "صفحه اصلی":
for row in cur.execute('SELECT rowid, id, img, note FROM pics ORDER BY id'):
# with st.form(f'ID-{row[0]}', clear_on_submit=True):
st.write("---")
imgcol, notecol = st.columns([3, 2])
# id=notecol.text_input('id', row[1])
id=notecol.text_input('کد محصول', row[1])
note=notecol.text_area('اسم محصول', row[3])
if row[2]:
img=row[2]
imgcol.image(row[2])
if selected == "تماس با ما":
col1,col2 = st.columns(2)
with col1:
st.image("ahmad.jpg")
with col2:
st.write("احمد ژرف")
st.text(" شماره تماس : 09172114362 ")
st.write("من از سال 1374 شروع به فعالیت کردم و سابقه کار تو حوزه طراحی و اجرای نصب پی وی سی با طرح های مختلف در سر تا سر جزیره قشم فعالیت میکنم و در خدمت شما مردم هستم برای اجرای نصب پی وی سی با من تماس بگیرید .")
st.write("---")
st.markdown("[طراح و برنامه نویس : عبداالله چلاسی](https://abdollahchelasi.ir)")
st.markdown("""
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style>
""",unsafe_allow_html=True)
App indexability is a feature of Community Cloud:
I see you’ve deployed the same code on a server outside of Community Cloud:
If you want your app title and description to be displayed in Google search instead of You need to enable JavaScript to run this app. Please wait
, you must wait for your Community Cloud app https://abdollahchelasi.streamlit.app to get indexed by Google.
Your Community Cloud app has not been indexed yet, so I’d advise you to check again in a couple of days to a week:
If you want your non-Community Cloud apps to have a similar description and title in search results, you’ll have to figure out how to pass metatags for the title and description to Google’s crawlers.
I deployed in Iranian server, I don’t want to deploy in streamlit because it is a filter
Iranian server address
https://abdollahchelasi.ir
Does it take time for the title and text to be displayed in Google?
If you want your non-Community Cloud apps to have a similar description and title in search results, you’ll have to figure out, among other things, how to pass metatags for the title and description to Google’s crawlers.
GoogleBot does not support rendering Streamlit apps because they use websockets to communicate with the backend. You’ll have to come up with a way to prerender the application using a system that supports websockets and serve the prerendered content to GoogleBot on demand – something we cannot help with.
This site, which is deployed with streamlit, JavaScript is disabled, it may take time
https://share.streamlit.io/mitch-parker/rascore/main/src/rascore/rascore_gui.py
But this site is deployed with an Iranian server and JavaScript is still disabled. It is possible that this site will also be indexed by Google.
Unfortunately, it isn’t possible until:
With streamlit deployed, the site cannot be opened, giving this error
Error: Forbidden
Your client does not have permission to get URL /
from this server.
This site does not open on the Iranian server. Can you solve the problem so that we can enter without a filter breaker?
Hi @Abdollah_Chelasi - As an open-source product, we strive to make the Streamlit library accessible to everyone.
Unfortunately for the Community Cloud product since that is classified as a service, there are certain countries that we are prohibited from offering services in. This is a Snowflake company policy that we adhere to, and we apologize that we are not able to offer service in your country at this time. We hope in the future to be able to expand services to more countries.
That said, there are many ways to host your own app and there’s a whole section on the forum devoted to discussing other deployment options: Deploying Streamlit. We realize you aren’t able to get the benefits of app indexability via the other deployment options, and we regret that we cannot offer a solution to this issue at this time.