Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from streamlit.components.v1 import html | |
| st.set_page_config(page_title="Crawler Test") | |
| page = st.query_params.get("page", "home") | |
| if page == "home": | |
| st.title("Crawler Test - Home Page") | |
| st.markdown('<a href="?page=loop1" target="_self">Go to Loop Page 1</a>', unsafe_allow_html=True) | |
| elif page == "loop1": | |
| st.title("Loop Page 1") | |
| st.markdown('<a href="?page=home" target="_self">Go back to Home</a>', unsafe_allow_html=True) | |
| st.markdown('<a href="?page=loop2" target="_self">Go to Loop Page 2</a>', unsafe_allow_html=True) | |
| elif page == "loop2": | |
| st.title("Loop Page 2") | |
| st.markdown(""" | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt | |
| ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation | |
| ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in | |
| reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt | |
| mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit | |
| voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab | |
| illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. | |
| """) |