From c43b1c4ee0cefbc68cf106f1e55ecdb5589f36f9 Mon Sep 17 00:00:00 2001 From: oscarz Date: Thu, 24 Apr 2025 18:12:33 +0800 Subject: [PATCH] modify scripts --- javdb/src/scraper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/javdb/src/scraper.py b/javdb/src/scraper.py index 44c137f..86cf265 100644 --- a/javdb/src/scraper.py +++ b/javdb/src/scraper.py @@ -406,7 +406,8 @@ def parse_series_uncensored(soup, href): # 解析 HTML 内容,提取需要的数据 def parse_series_detail(soup, href): - div_movies = soup.find("div", class_='movie-list h cols-4 vcols-5') + #div_movies = soup.find("div", class_='movie-list h cols-4 vcols-5') + div_movies = soup.find("div", class_=re.compile(r'movie-list h cols-4 vcols-(5|8)')) if not div_movies: logging.warning(f"Warning: No movies div found ") return [], None @@ -486,7 +487,8 @@ def parse_makers_uncensored(soup, href): # 解析 HTML 内容,提取需要的数据 def parse_maker_detail(soup, href): - div_movies = soup.find("div", class_='movie-list h cols-4 vcols-5') + #div_movies = soup.find("div", class_='movie-list h cols-4 vcols-5') + div_movies = soup.find("div", class_=re.compile(r'movie-list h cols-4 vcols-(5|8)')) if not div_movies: logging.warning(f"Warning: No movies div found ") return [], None