使用新的网址

This commit is contained in:
liuwei
2025-12-22 15:45:40 +08:00
parent d5d7a2a34d
commit 8a68338ffe
2 changed files with 38 additions and 22 deletions

View File

@@ -132,7 +132,7 @@ class SehuatangCrawler:
def bypass_age_verification(self):
try:
self.driver.get("https://www.sehuatang.net/forum.php")
self.driver.get("https://www.sehuatang.org/forum.php")
time.sleep(2)
try:
enter_button = self.driver.find_element(By.XPATH, '//a[contains(text(), "满18岁")]')
@@ -332,7 +332,7 @@ class SehuatangCrawler:
if RUN_MODE == 'daily' and consecutive_old_posts > 20:
break
list_url = f"https://www.sehuatang.net/forum-{fid}-{page}.html"
list_url = f"https://www.sehuatang.org/forum-{fid}-{page}.html"
logger.info(f"正在爬取第 {page}")
try:
@@ -369,7 +369,7 @@ class SehuatangCrawler:
continue
partial_url = title_tag.get('href')
full_url = f"https://www.sehuatang.net/{partial_url}"
full_url = f"https://www.sehuatang.org/{partial_url}"
# 获取详情页数据(含女优)
magnet, cover, body_actress = self.parse_detail_page(full_url)