1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-26 02:03:44 +01:00

Xenforo2 title labels

This commit is contained in:
David Lynch 2019-07-24 23:29:08 -05:00
parent a148fa8c43
commit f002064352

View file

@ -14,7 +14,7 @@ class XenForo2(XenForo):
url = soup.find('meta', property='og:url').get('content')
title = soup.select('h1.p-title-value')[0]
# clean out informational bits from the title
for tag in title.find_all(class_='prefix'):
for tag in title.select('.labelLink,.label-append'):
tag.decompose()
return Section(
title=title.get_text().strip(),