Stop trying to regex a string into linked picture file

This commit is contained in:
jeancf 2020-09-10 13:09:51 +02:00
parent 3500853dc8
commit 67fdbba510

View File

@ -401,6 +401,7 @@ def main(argv):
m = re.search(r"http[^ \n\xa0]*", tweet_text)
if m is not None:
link_url = m.group(0)
if link_url.endswith(".html"): # Only process a web page
try:
r = requests.get(link_url, timeout=10)
if r.status_code == 200: