From 2ade44cd32fb995b6fa7930e7fc39c9e31a5500d Mon Sep 17 00:00:00 2001 From: Deng Zhou <553531284@qq.com> Date: Sat, 22 Jan 2022 23:47:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20fanza=20=E5=89=A7=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ WebCrawler/fanza.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 95c3b73..09632a9 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,5 @@ venv.bak/ JAV_output/**/* failed/* .vscode/launch.json + +.idea \ No newline at end of file diff --git a/WebCrawler/fanza.py b/WebCrawler/fanza.py index 00d8988..08ce923 100644 --- a/WebCrawler/fanza.py +++ b/WebCrawler/fanza.py @@ -197,7 +197,7 @@ def getSeries(text): return "" def getExtrafanart(htmlcode): # 获取剧照 - html_pather = re.compile(r'
') + html_pather = re.compile(r'\n') html = html_pather.search(htmlcode) if html: html = html.group() @@ -314,4 +314,4 @@ def main_htmlcode(number): if __name__ == "__main__": # print(main("DV-1562")) # print(main("96fad1217")) - print(main("pred00251")) + print(main("h_173ghmt68"))