mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 11:41:35 +01:00
[architizer] fix extraction (#4537)
This commit is contained in:
parent
6178177227
commit
cb4798f07a
@ -29,11 +29,13 @@ class ArchitizerProjectExtractor(GalleryExtractor):
|
||||
|
||||
def metadata(self, page):
|
||||
extr = text.extract_from(page)
|
||||
extr('id="Pages"', "")
|
||||
|
||||
return {
|
||||
"title" : extr("data-name='", "'"),
|
||||
"slug" : extr("data-slug='", "'"),
|
||||
"gid" : extr("data-gid='", "'").rpartition(".")[2],
|
||||
"firm" : extr("data-firm-leaders-str='", "'"),
|
||||
"title" : extr('data-name="', '"'),
|
||||
"slug" : extr('data-slug="', '"'),
|
||||
"gid" : extr('data-gid="', '"').rpartition(".")[2],
|
||||
"firm" : extr('data-firm-leaders-str="', '"'),
|
||||
"location" : extr("<h2>", "<").strip(),
|
||||
"type" : text.unescape(text.remove_html(extr(
|
||||
'<div class="title">Type</div>', '<br'))),
|
||||
@ -52,7 +54,7 @@ class ArchitizerProjectExtractor(GalleryExtractor):
|
||||
return [
|
||||
(url, None)
|
||||
for url in text.extract_iter(
|
||||
page, "property='og:image:secure_url' content='", "?")
|
||||
page, 'property="og:image:secure_url" content="', "?")
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user