使用新的网址
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user