'match.group(N)' -> 'match[N]' (#7671)

2.5x faster
This commit is contained in:
Mike Fährmann
2025-06-18 12:59:37 +02:00
parent 475506cc39
commit 41191bb60a
135 changed files with 363 additions and 363 deletions

View File

@@ -24,7 +24,7 @@ class ArchitizerProjectExtractor(GalleryExtractor):
example = "https://architizer.com/projects/NAME/"
def __init__(self, match):
url = "{}/projects/{}/".format(self.root, match.group(1))
url = "{}/projects/{}/".format(self.root, match[1])
GalleryExtractor.__init__(self, match, url)
def metadata(self, page):
@@ -68,7 +68,7 @@ class ArchitizerFirmExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
self.firm = match.group(1)
self.firm = match[1]
def items(self):
url = url = "{}/firms/{}/?requesting_merlin=pages".format(