Hello good time
Friends, how can I embed google results?
I could not do this with iframe
Hello good time
Friends, how can I embed google results?
I could not do this with iframe
Hi there,
Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here – in particular, please share a code snippet that shows what you’ve tried so far to implement this.
Caroline
import streamlit as st
import streamlit.components.v1 as components
components.iframe(“http://www.google.com/”)
import streamlit as st
import streamlit.components.v1 as components
search = st.text_input("What do you want to search for?")
components.iframe(f"https://www.google.com/search?igu=1&ei=&q={search}", height=1000)
This results in something like this:
Hello
Thank you very much for your help.
Hello again
I have another question.
Is it possible to use two iframes side by side?
I mean to have two iframes across the page
Hi @amiran
That is certainly possible using st.columns
import streamlit.components.v1 as components
import streamlit as st
st.set_page_config(layout="wide")
search = st.text_input("What do you want to search for?")
col1, col2 = st.columns(2)
with col1:
components.iframe(
f"https://www.google.com/search?igu=1&ei=&q={search}", height=1000, width=400
)
with col2:
components.iframe(
f"https://www.google.com/search?igu=1&ei=&q={search}", height=1000, width=400
)
Hello
Thank you very much, right?
I had completely forgotten the columns
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
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.
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.
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.
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.