更新代码

This commit is contained in:
JoeamAmier 2023-08-26 22:54:16 +08:00
parent 07cb8fe8a4
commit b50de02ba3
2 changed files with 2 additions and 10 deletions

View File

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

View File

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