Hi guys, I’m trying to get a terminal output to be printed in Streamlit.But its not printed in streamlit

Screenshot 2023-12-10 002037


here the url is printed in terminal but not in streamlit , please help me to resolve this issue

Welcome to streamlit forum.

Have time to analyze your program.

  • What is printed in the terminal is your search url.

  • But you are trying to print the founder using streamlit.

They are two different things.

so how can i print the url in the streamlit, please provide me the solution

What happens in the internals of startup_info.get_founder()? Whatever is returned by that method is what you’re writing to your Streamlit app with st.write(founder). Find in your code where you have the print() statement that’s writing to your terminal and use st.write instead of print.

actually the problem is in the googlesearch-python package, it returns the link with an empty list like in the screenshot, i have change the code into this :

query = ’ founder of 121Policy’
search_url = ‘Google’ + ‘+’.join(query.split())
search_results =

Append the search URL to the list

search_results.append(search_url)
print(search_results)

manually i have created the link , now it printed in streamlit .



: problem solved manually , thanks

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