更新代码

This commit is contained in:
JoeamAmier 2023-09-01 19:24:06 +08:00
parent 64140f7729
commit c5a3e9e4f6
2 changed files with 4 additions and 2 deletions

View File

@ -10,11 +10,13 @@ class Download:
def __init__(
self,
manager,
path,
folder,
headers: dict,
proxies=None,
chunk=256 * 1024, ):
self.manager = manager
self.root = self.init_root(path, folder)
self.headers = headers
self.proxies = {

View File

@ -26,11 +26,11 @@ class XHS:
chunk=256 * 1024,
):
self.html = Html(self.headers, proxies, timeout)
self.manager = Manager()
self.image = Image()
self.video = Video()
self.explore = Explore()
self.download = Download(path, folder, self.headers, proxies, chunk)
self.manager = Manager()
self.download = Download(self.manager, path, folder, self.headers, proxies, chunk)
def get_image(self, container: dict, html: str, download):
urls = self.image.get_image_link(html)