This commit is contained in:
caiwx86 2023-04-05 22:20:26 +08:00
parent 8096eee351
commit f3ee7bccc2

View File

@ -13,9 +13,7 @@ class comicEntity:
ListComic.setListComicName(books,"name")
ListComic.setListComicChapterLink(books,"id",start_add=pathStr.getBaseUrl(url)+"/books/")
ListComic.setListComicUpdateAt(books,"updatedAt")
is_next = True
while is_next:
is_next = baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
return baseComic.updateComics(chapters_xpath='//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
@classmethod
def oneComic(cls,sleep=None):
@ -39,5 +37,5 @@ class comicEntity:
@classmethod
def start(cls,url):
cls.downladsComcis(url)
cls.oneComic()
is_next = cls.downladsComcis(url)
while is_next: cls.oneComic()