fix
This commit is contained in:
parent
c5f68de6cb
commit
cdb27c631f
3
main.py
3
main.py
@ -6,4 +6,5 @@ if __name__ == '__main__':
|
|||||||
# url = "https://rm01.xyz/books/f08668a4-0cbc-488e-95a7-3c71de0c7a31/1"
|
# url = "https://rm01.xyz/books/f08668a4-0cbc-488e-95a7-3c71de0c7a31/1"
|
||||||
# comicEntity.comicChapter(url,scramble=True)
|
# comicEntity.comicChapter(url,scramble=True)
|
||||||
# comicEntity.oneComic("https://rm01.xyz/books/c94f80c1-a673-4c74-bb5e-ad5ac7dd766b")
|
# 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)
|
||||||
@ -61,7 +61,7 @@ class imageUtils:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def splitimage(cls,src,rownum,colnum,dstpath):
|
def splitimage(cls,src,rownum,colnum,dstpath):
|
||||||
img=Image.open(src)
|
img=Image.open(src)
|
||||||
w,h=img.size
|
w,h=img.size
|
||||||
if rownum<= h and colnum<=w:
|
if rownum<= h and colnum<=w:
|
||||||
s=os.path.split(src)
|
s=os.path.split(src)
|
||||||
if dstpath=='':
|
if dstpath=='':
|
||||||
|
|||||||
@ -25,7 +25,7 @@ class comicEntity:
|
|||||||
book_id = book.get("id")
|
book_id = book.get("id")
|
||||||
book_name = book.get("name")
|
book_name = book.get("name")
|
||||||
comicHref = baseUrl+"/books/"+book_id
|
comicHref = baseUrl+"/books/"+book_id
|
||||||
random_int = random.uniform(8,30)
|
random_int = random.uniform(5,20)
|
||||||
wait = print(f"{random_int}秒后开始下载 漫画:{book_name}")
|
wait = print(f"{random_int}秒后开始下载 漫画:{book_name}")
|
||||||
time.sleep(random_int)
|
time.sleep(random_int)
|
||||||
cls.oneComic(comicHref, random.uniform(0,3))
|
cls.oneComic(comicHref, random.uniform(0,3))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user