From cbfd9bafa1388df3f22b613deb6c7762b29a65a6 Mon Sep 17 00:00:00 2001 From: Claromes Date: Fri, 12 May 2023 23:28:19 -0300 Subject: [PATCH] update readme, style --- README.md | 20 ++++++++++++++++++- app.py | 58 +++++++++++++++++++++++++++++-------------------------- 2 files changed, 50 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 343adba..bd4361b 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,30 @@ Archived tweets on Wayback Machine in a easy way *Thanks Tristan Lee for the idea.* +## Development + +### Requirements + +- Python 3.8+ + +### Installation + +$ `git clone git@github.com:claromes/waybacktweets.git` + +$ `cd waybacktweets` + +$ `pip install -r requirements.txt` + +$ `streamlit run app.py` + +Streamlit will be served at http://localhost:8501 + ## Bugs - [ ] "web.archive.org took too long to respond." - [x] `only_deleted` checkbox selected for handles without deleted tweets -## TODO +## Roadmap - [ ] Feedbacks - [ ] Pagination diff --git a/app.py b/app.py index af7689e..5b2fecd 100644 --- a/app.py +++ b/app.py @@ -13,32 +13,36 @@ st.set_page_config( # https://discuss.streamlit.io/t/remove-hide-running-man-animation-on-top-of-page/21773/3 hide_streamlit_style = """ - - """ + +""" st.markdown(hide_streamlit_style, unsafe_allow_html=True) def embed(tweet): @@ -85,7 +89,7 @@ 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', anchor=False) +st.title('Wayback Tweets [![GitHub stars](https://img.shields.io/github/stars/claromes/waybacktweets?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') -- 2.34.1