This commit is contained in:
caiwx86 2023-04-05 22:15:37 +08:00
parent 1e61a38d62
commit 9194a1b603

View File

@ -13,7 +13,9 @@ 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()')
@classmethod
def oneComic(cls,sleep=None):
@ -37,7 +39,5 @@ class comicEntity:
@classmethod
def start(cls,url):
is_next = True
while is_next:
is_next = cls.downladsComcis(url)
cls.oneComic()
cls.downladsComcis(url)
cls.oneComic()