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