Sync all projects

This commit is contained in:
github-actions[bot]
2026-07-27 11:54:56 +00:00
parent 7023648359
commit 4e4e437247
83 changed files with 32938 additions and 13627 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# by @嗷呜
import json
import sys
from base64 import b64decode, b64encode
@@ -172,11 +172,11 @@ class Spider(Spider):
def gethost(self):
try:
response = self.fetch('https://xhamster.com', headers=self.headers, allow_redirects=False)
response = self.fetch('https://zh.xhamster1.desi/', headers=self.headers, allow_redirects=False)
return response.headers['Location']
except Exception as e:
print(f"获取主页失败: {str(e)}")
return "https://zn.xhamster.com"
return "https://zh.xhamster1.desi/"
def e64(self, text):
try: