From b342f375ffa022e8d991a953b96e3776c2ffd6f6 Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Wed, 19 Feb 2025 13:36:16 +0800 Subject: [PATCH] Update py_Xhm.py --- py/py_Xhm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py/py_Xhm.py b/py/py_Xhm.py index 810b2188..cad81d29 100644 --- a/py/py_Xhm.py +++ b/py/py_Xhm.py @@ -213,11 +213,11 @@ class Spider(Spider): def gethost(self): try: - response = self.fetch('https://xhamster.com', headers=self.headers, allow_redirects=False) + response = self.fetch('http://127.0.0.1:10079/p/0/127.0.0.1:10172/https://xhamster.com', headers=self.headers, allow_redirects=False) return response.headers['Location'] except Exception as e: print(f"获取主页失败: {str(e)}") - return "https://zn.xhamster.com" + return "http://127.0.0.1:10079/p/0/127.0.0.1:10172/https://zn.xhamster.com" def e64(self, text): try: @@ -263,4 +263,3 @@ class Spider(Spider): vhtml = data("script[id='initials-script']").text() jst = json.loads(vhtml.split('initials=')[-1][:-1]) return jst -