更新代码

This commit is contained in:
JoeamAmier
2023-08-22 20:51:36 +08:00
parent 5a755a4b95
commit 7c0d637e7e

View File

@@ -10,9 +10,9 @@ HEADERS = {
class XHS:
def __init__(self, path="./", headers=None):
def __init__(self, path="./", headers=None, proxies=None, timeout=10):
self.params = Params(path)
self.html = Html(headers or HEADERS)
self.html = Html(headers or HEADERS, proxies, timeout)
self.image = Image(self.html, self.params)
self.video = Video(self.html, self.params)
self._cookie = ""