This commit is contained in:
cwx
2023-04-05 22:32:46 +08:00
parent de988e4132
commit 1dd4e9f41f
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -13,7 +13,10 @@ class comicEntity:
ListComic.setListComicName(books,"name")
ListComic.setListComicChapterLink(books,"id",start_add=pathStr.getBaseUrl(url)+"/books/")
ListComic.setListComicUpdateAt(books,"updatedAt")
return baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
is_next = True
while is_next:
is_next = baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
cls.oneComic()
@classmethod
def oneComic(cls,sleep=None):
@@ -37,4 +40,4 @@ class comicEntity:
@classmethod
def start(cls,url):
while cls.downladsComcis(url): cls.oneComic()
cls.downladsComcis(url)