mirror of
https://github.com/kemayo/leech
synced 2026-05-08 12:34:37 +02:00
Xenforo2 title labels
This commit is contained in:
parent
a148fa8c43
commit
f002064352
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue