From 85c1c19b3e39e952c31f947744aa02942a8dab3b Mon Sep 17 00:00:00 2001 From: Claromes Date: Wed, 16 Aug 2023 18:29:58 -0300 Subject: [PATCH] fix tweet regex --- app.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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'