cvb
parent
1f46aeb66a
commit
554ada8d29
|
@ -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…
Reference in New Issue