This commit is contained in:
caiwx86 2022-12-06 19:00:16 +08:00
parent c5f68de6cb
commit cdb27c631f
3 changed files with 4 additions and 3 deletions

View File

@ -6,4 +6,5 @@ if __name__ == '__main__':
# url = "https://rm01.xyz/books/f08668a4-0cbc-488e-95a7-3c71de0c7a31/1"
# comicEntity.comicChapter(url,scramble=True)
# comicEntity.oneComic("https://rm01.xyz/books/c94f80c1-a673-4c74-bb5e-ad5ac7dd766b")
comicEntity.downladsComcis("https://rm01.xyz/books?&page=0")
for x in range(0,20):
comicEntity.downladsComcis("https://rm01.xyz/books?&page="+x)

View File

@ -61,7 +61,7 @@ class imageUtils:
@classmethod
def splitimage(cls,src,rownum,colnum,dstpath):
img=Image.open(src)
w,h=img.size
w,h=img.size
if rownum<= h and colnum<=w:
s=os.path.split(src)
if dstpath=='':

View File

@ -25,7 +25,7 @@ class comicEntity:
book_id = book.get("id")
book_name = book.get("name")
comicHref = baseUrl+"/books/"+book_id
random_int = random.uniform(8,30)
random_int = random.uniform(5,20)
wait = print(f"{random_int}秒后开始下载 漫画:{book_name}")
time.sleep(random_int)
cls.oneComic(comicHref, random.uniform(0,3))