mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
更新代码
This commit is contained in:
parent
00b0e697cc
commit
91b307e899
@ -8,7 +8,7 @@ class Image:
|
||||
def __init__(self, html):
|
||||
self.html = html
|
||||
|
||||
def get_image_link(self, url: str, download: bool):
|
||||
def get_image_link(self, url: str):
|
||||
html = self.html.get_html(url)
|
||||
return self.__get_image_links(html)
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ class Video:
|
||||
def __init__(self, html):
|
||||
self.html = html
|
||||
|
||||
def get_video_link(self, url: str, download: bool):
|
||||
def get_video_link(self, url: str):
|
||||
html = self.html.get_html(url)
|
||||
return self.__get_video_link(html)
|
||||
|
||||
|
||||
@ -18,7 +18,13 @@ class XHS:
|
||||
self._cookie = ""
|
||||
|
||||
def get_image(self, url: str, download=False):
|
||||
return self.image.get_image_link(url, download)
|
||||
urls = self.image.get_image_link(url)
|
||||
if download:
|
||||
pass
|
||||
return urls
|
||||
|
||||
def get_video(self, url: str, download=False):
|
||||
return self.video.get_video_link(url, download)
|
||||
url = self.video.get_video_link(url)
|
||||
if download:
|
||||
pass
|
||||
return url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user