更新代码

This commit is contained in:
JoeamAmier 2023-08-26 22:29:27 +08:00
parent 00b0e697cc
commit 91b307e899
3 changed files with 10 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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