From dd555033cbfbf82378178d0bae6dd5f8f9344a28 Mon Sep 17 00:00:00 2001 From: Claromes Date: Sat, 13 May 2023 00:43:52 -0300 Subject: [PATCH] style and badge --- app.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 5b2fecd..bb7603b 100644 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ st.set_page_config( ) # https://discuss.streamlit.io/t/remove-hide-running-man-animation-on-top-of-page/21773/3 -hide_streamlit_style = """ +hide_streamlit_style = ''' -""" +''' st.markdown(hide_streamlit_style, unsafe_allow_html=True) def embed(tweet): @@ -89,12 +89,11 @@ def attr(i): {}. **Wayback Machine:** [link]({}) | **MIME Type:** {} | **From:** {} | **Tweet:** [link]({}) '''.format(i+1, link, mimetype[i], datetime.datetime.strptime(timestamp[i], "%Y%m%d%H%M%S"), tweet_links[i])) -st.title('Wayback Tweets [![GitHub stars](https://img.shields.io/github/stars/claromes/waybacktweets?style=social)](https://github.com/claromes/waybacktweets)', anchor=False) +st.title('Wayback Tweets [![Fork me on GitHub](https://img.shields.io/badge/-Fork%20me%20on%20GitHub-ededed?logo=github&style=social)](https://github.com/claromes/waybacktweets)', anchor=False) st.write('Archived tweets on Wayback Machine') handle = st.text_input('username', placeholder='username', label_visibility='collapsed') query = st.button('Query', type='primary', use_container_width=True, key='init') -only_deleted = st.checkbox('Only deleted tweets') if query or handle: with st.spinner(''): @@ -105,6 +104,8 @@ if query or handle: mimetype = parse_links(links)[2] timestamp = parse_links(links)[3] + only_deleted = st.checkbox('Only deleted tweets') + if links or stop: st.divider() -- 2.34.1