parent
6764847349
commit
0b4be57a10
@ -101,7 +101,7 @@ class SankakuExtractor(SharedConfigMixin, Extractor):
|
||||
tags = collections.defaultdict(list)
|
||||
tags_html = text.extract(page, '<ul id=tag-sidebar>', '</ul>')[0]
|
||||
pattern = re.compile(r'tag-type-([^>]+)><a href="/\?tags=([^"]+)')
|
||||
for tag_type, tag_name in pattern.findall(tags_html):
|
||||
for tag_type, tag_name in pattern.findall(tags_html or ""):
|
||||
tags[tag_type].append(text.unquote(tag_name))
|
||||
for key, value in tags.items():
|
||||
data["tags_" + key] = " ".join(value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user