mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
优化链接提取逻辑
This commit is contained in:
@@ -6,7 +6,7 @@ __all__ = ['Image']
|
|||||||
|
|
||||||
|
|
||||||
class Image:
|
class Image:
|
||||||
IMAGE_URL = compile(r'"CRD_WM_[A-Z]{3,4}","url":"(.*?)"')
|
IMAGE_URL = compile(r'"CRD_WM_[A-Z]{3,4}","url":"(.*?_wm_1)"')
|
||||||
|
|
||||||
def get_image_link(self, html: str) -> list:
|
def get_image_link(self, html: str) -> list:
|
||||||
return [Html.format_url(i) for i in self.IMAGE_URL.findall(html)]
|
return [Html.format_url(i) for i in self.IMAGE_URL.findall(html)]
|
||||||
|
|||||||
Reference in New Issue
Block a user