From e23c34e29bec1f30df4e72d5c38e0d50165fe77a Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Fri, 11 Sep 2026 21:40:57 +0800 Subject: [PATCH] update tags --- run.py | 11 +++++++---- src/sites/configs/rouman.yml | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/run.py b/run.py index 00953d0..afd6270 100644 --- a/run.py +++ b/run.py @@ -6,13 +6,16 @@ logger = setup_logging(__name__) async def main(): # 配置下载参数 - #manga_url = "https://rouman5.com/books/5f70fd06-5554-4ac5-b3a8-5b82749a4a7a" manga_list_url = "https://rouman5.com/books?continued=true" # 开始下载 - #await MangaManager().download_manga(manga_url) - for i in range(0,30): + for i in range(0,10): await MangaManager().download_list_manga(f"{manga_list_url}&page={i}") +async def test(): + manga_url = "https://rouman5.com/books/da3a4665-7af0-4e8a-aaf5-a34c620a0323" + await MangaManager().download_manga(manga_url) + if __name__ == "__main__": - asyncio.run(main()) \ No newline at end of file + asyncio.run(main()) + #asyncio.run(test()) \ No newline at end of file diff --git a/src/sites/configs/rouman.yml b/src/sites/configs/rouman.yml index 7e28ee9..57b4000 100644 --- a/src/sites/configs/rouman.yml +++ b/src/sites/configs/rouman.yml @@ -20,8 +20,8 @@ selectors: index: 1 cover: '//div[@class="site-book-overview"]/img[@class="site-detail-cover"]/@src' #status: .book-detail dl dt:contains("状态") + dd - #tags: - # selector: '//div[@class="basis-3/5 text-sm sm:text-base"]//span[@class="text-foreground"]/text()' + tags: + selector: '//head/meta[@name="keywords"]/@content' # index: 3 # date: '//div[@class="text-gray-500 text-sm mt-2"]/div/text()' genre: