mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
更新代码
This commit is contained in:
parent
07cb8fe8a4
commit
b50de02ba3
@ -5,11 +5,7 @@ class Image:
|
||||
IMAGE_API = "https://sns-img-qc.xhscdn.com/"
|
||||
IMAGE_ID = compile(r'"traceId":"(.*?)"')
|
||||
|
||||
def __init__(self, html):
|
||||
self.html = html
|
||||
|
||||
def get_image_link(self, url: str):
|
||||
html = self.html.get_html(url)
|
||||
def get_image_link(self, html: str):
|
||||
return self.__get_image_links(html)
|
||||
|
||||
def __get_id(self, html: str) -> list:
|
||||
|
||||
@ -4,11 +4,7 @@ from re import compile
|
||||
class Video:
|
||||
VIDEO_ID = compile(r'"masterUrl":"(.*?)"')
|
||||
|
||||
def __init__(self, html):
|
||||
self.html = html
|
||||
|
||||
def get_video_link(self, url: str):
|
||||
html = self.html.get_html(url)
|
||||
def get_video_link(self, html: str):
|
||||
return self.__get_video_link(html)
|
||||
|
||||
def __get_video_link(self, html: str) -> list:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user