更新代码

This commit is contained in:
JoeamAmier
2023-09-16 20:57:09 +08:00
parent 1bf780d3b5
commit 65e6ec375b

View File

@@ -6,7 +6,7 @@ __all__ = ['Image']
class Image:
IMAGE_URL = compile(r'"CRD_WM_.*?","url":"(.*?)"')
IMAGE_URL = compile(r'"CRD_WM_[A-Z]{3,4}","url":"(.*?)"')
def get_image_link(self, html: str) -> list:
return [Html.format_url(i) for i in self.IMAGE_URL.findall(html)]