From: Claromes Date: Wed, 16 Aug 2023 21:29:58 +0000 (-0300) Subject: fix tweet regex X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=85c1c19b3e39e952c31f947744aa02942a8dab3b;p=waybacktweets.git fix tweet regex --- diff --git a/app.py b/app.py index 437ed95..726c06b 100644 --- a/app.py +++ b/app.py @@ -37,16 +37,6 @@ hide_streamlit_style = ''' header[data-testid="stHeader"] { opacity: 0.5; } - div[data-testid="stDecoration"] { - visibility: hidden; - height: 0%; - position: fixed; - } - div[data-testid="stStatusWidget"] { - visibility: hidden; - height: 0%; - position: fixed; - } iframe { background-color: #dddddd; border-radius: 0.5rem; @@ -95,7 +85,7 @@ def embed(tweet): url = 'https://publish.twitter.com/oembed?url={}'.format(tweet) response = requests.get(url) - regex = r'
]*>(.*?)<\/p>.*?— (.*?)<\/a>' + regex = r'