From 7c0d637e7ef9b81221318ceda8f1edcfa9674425 Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Tue, 22 Aug 2023 20:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/__init__.py b/source/__init__.py index 1ccb904..665eb64 100644 --- a/source/__init__.py +++ b/source/__init__.py @@ -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 = ""