JMComic-Crawler-Python/usage/jmcomic_workflows.py
2023-04-02 22:19:44 +08:00

18 lines
370 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from jmcomic import *
def get_option():
option = create_option('../assets/config/workflow_option.yml')
return option
# 下方填入你要下载的本子的id一行一个。
# 每行的首尾可以有空白字符
jm_albums = str_to_list('''
422866
''')
# 调用jmcomic的download_album方法下载漫画
download_album(jm_albums, option=get_option())