replace 'text.extract()' with 'text.extr()' where possible

This commit is contained in:
Mike Fährmann
2022-11-04 23:39:38 +01:00
parent eb33e6cf2d
commit b0cb4a1b9c
79 changed files with 199 additions and 202 deletions

View File

@@ -96,7 +96,7 @@ class KeenspotComicExtractor(Extractor):
self._image = '<div id="comic">'
return "http://brawlinthefamily.keenspot.com/comic/theshowdown/"
url = text.extract(page, '<link rel="first" href="', '"')[0]
url = text.extr(page, '<link rel="first" href="', '"')
if url:
if self.comic == "porcelain":
self._needle = 'id="porArchivetop_"'
@@ -144,7 +144,7 @@ class KeenspotComicExtractor(Extractor):
@staticmethod
def _next_link(page):
return text.extract(page, '<link rel="next" href="', '"')[0]
return text.extr(page, '<link rel="next" href="', '"')
@staticmethod
def _next_id(page):