cvb
This commit is contained in:
parent
f29b8dda60
commit
1635551246
2 changed files with 2 additions and 1 deletions
|
@ -1510,7 +1510,7 @@ def get_post_title(v):
|
||||||
try: x = requests.get(url, headers=titleheaders, timeout=5)
|
try: x = requests.get(url, headers=titleheaders, timeout=5)
|
||||||
except: abort(400)
|
except: abort(400)
|
||||||
|
|
||||||
soup = BeautifulSoup(x.content, 'html.parser')
|
soup = BeautifulSoup(x.content, 'xml')
|
||||||
|
|
||||||
title = soup.find('title')
|
title = soup.find('title')
|
||||||
if not title: abort(400)
|
if not title: abort(400)
|
||||||
|
|
|
@ -8,6 +8,7 @@ Flask-Mail
|
||||||
gevent
|
gevent
|
||||||
greenlet
|
greenlet
|
||||||
gunicorn
|
gunicorn
|
||||||
|
lxml
|
||||||
mistletoe
|
mistletoe
|
||||||
matplotlib
|
matplotlib
|
||||||
Pillow
|
Pillow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue