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)
|
||||
except: abort(400)
|
||||
|
||||
soup = BeautifulSoup(x.content, 'html.parser')
|
||||
soup = BeautifulSoup(x.content, 'xml')
|
||||
|
||||
title = soup.find('title')
|
||||
if not title: abort(400)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue