1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2026-05-08 12:34:37 +02: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') url = soup.find('meta', property='og:url').get('content')
title = soup.select('h1.p-title-value')[0] title = soup.select('h1.p-title-value')[0]
# clean out informational bits from the title # 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() tag.decompose()
return Section( return Section(
title=title.get_text().strip(), title=title.get_text().strip(),