shaikhsajid1111 / manga-down

manga_down is a tool to download manga from mangareader and mangapanda
https://pypi.org/project/manga-down/
MIT License
4 stars 0 forks source link

invalid literal for int() with base 10: '*' #3

Closed sugizo closed 3 years ago

sugizo commented 3 years ago

code

manga = mangapanda.Manga("kenji")
manga.download_chapter("*")

result invalid literal for int() with base 10: '*'

objective want to download all chapter

question how to achieve it using manga-down ?

thx

shaikhsajid1111 commented 3 years ago

Asterisk won't work for downloading all manga chapters. Actually, there's no feature to download all at once.

However you can use the below code that can code similar thing:

manga = mangapanda.Manga("kenji")
chapter_list = manga.get_chapter_list()

for chapter in range(len(chapter_list)):
    manga.download_chapter(chapter)

But use it at your own risk, you may meet the rate limit feature or your IP address can get block temporarily for sending too many requests.

sugizo commented 3 years ago

make sense, thank you for the pointer