21 lines
601 B
Python
21 lines
601 B
Python
import asyncio
|
|
from src.sites.manager import MangaManager
|
|
from src.common.logging import setup_logging
|
|
|
|
logger = setup_logging(__name__)
|
|
|
|
async def main():
|
|
# 配置下载参数
|
|
manga_list_url = "https://rouman5.com/books?continued=true"
|
|
|
|
# 开始下载
|
|
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())
|
|
#asyncio.run(test()) |