From 554ada8d29783099ee05e59d43103abb6bdfc5f7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 21 Feb 2022 01:57:31 +0200 Subject: [PATCH] cvb --- files/routes/posts.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index aada9ec48..fc20a8947 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1510,7 +1510,7 @@ def get_post_title(v): try: x = requests.get(url, headers=titleheaders, timeout=5) except: abort(400) - soup = BeautifulSoup(x.content, 'html.parser') + soup = BeautifulSoup(x.content, 'xml') title = soup.find('title') if not title: abort(400) diff --git a/requirements.txt b/requirements.txt index bbc60baae..17a01ccb4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,7 @@ Flask-Mail gevent greenlet gunicorn +lxml mistletoe matplotlib Pillow