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;
url = 'https://publish.twitter.com/oembed?url={}'.format(tweet)
response = requests.get(url)
- regex = r'<blockquote class="twitter-tweet"><p[^>]*>(.*?)<\/p>.*?— (.*?)<\/a>'
+ regex = r'<blockquote class="twitter-tweet"(?: [^>]+)?><p[^>]*>(.*?)<\/p>.*?— (.*?)<\/a>'
regex_author = r'^(.*?)\s*\('
if response.status_code == 200 or response.status_code == 302: