improve msgs
authorClaromes <claromes@hey.com>
Wed, 31 May 2023 06:04:07 +0000 (03:04 -0300)
committerClaromes <claromes@hey.com>
Wed, 31 May 2023 06:04:07 +0000 (03:04 -0300)
README.md
app.py

index 6a70de21965e156b1afb8dde46ff2c53a2ed86d3..e134950336c486d0cbb48230b856486dc656866e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -44,7 +44,6 @@ Streamlit will be served at http://localhost:8501
 - [ ] Range size defined by user
 - [ ] Prevent duplicate URLs
 - [ ] Hide Twitter header banner (iframe)
-- [ ] Grid
 - [ ] Contributing/ Docs
 - [ ] Changelog
 - [ ] `parse_links` exception
diff --git a/app.py b/app.py
index c879072ac29e7853f9c2d9e7847f3e675ced085a..7bd1c059b0cfa3b3dfd5392d8df7c1504427d1e6 100644 (file)
--- a/app.py
+++ b/app.py
@@ -3,7 +3,7 @@ import datetime
 import streamlit as st
 import streamlit.components.v1 as components
 
-__version__ = '0.1.2.1'
+__version__ = '0.1.3'
 
 st.set_page_config(
     page_title='Wayback Tweets',
@@ -122,7 +122,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 release (latest by date)](https://img.shields.io/github/v/release/claromes/waybacktweets)](https://github.com/claromes/waybacktweets/releases)', anchor=False)
+st.title('''
+Wayback Tweets
+[![GitHub release (latest by date)](https://img.shields.io/github/v/release/claromes/waybacktweets)](https://github.com/claromes/waybacktweets/releases)
+[![Star](https://img.shields.io/github/stars/claromes/waybacktweets?style=social)](https://github.com/claromes/waybacktweets)
+''', anchor=False)
 st.write('Search archived tweets on Wayback Machine in an easy way')
 
 handle = st.text_input('username', placeholder='username', label_visibility='collapsed')
@@ -222,5 +226,9 @@ if query or handle:
             if not links:
                 st.error('Unable to query the Wayback Machine API.')
     except TypeError as e:
-        st.error('{}. Refresh this page and try again.'.format(e))
+        st.error('''
+        {}. Refresh this page and try again.
+
+        If the problem persists [open an issue](https://github.com/claromes/waybacktweets/issues) or send me a [tweet](https://twitter.com/compose/tweet?text=@claromes).
+        '''.format(e))
         st.session_state.current_index = 0
\ No newline at end of file