Skip to content

请问进行登陆之后有获得已收藏本子的方法吗? #235

Closed Answered by hect0x7
FengZhe-ZYH asked this question in Q&A
Discussion options

You must be logged in to vote

v2.4.1 已实现,参考如下代码:

from jmcomic import *

op = create_option('xxx')
cl = op.new_jm_client()

# 登录,可以使用插件或配置AVS等其他方式
cl.login('username', 'password')

# 遍历收藏页
for page in cl.favorite_folder_gen(username='username'): # 指定username参数,api Client 可以不传
    # 遍历收藏页下的每个结果
    for aid, atitle in page:
        # aid: 本子的album_id
        print(aid)

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hect0x7
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #163 on April 29, 2024 15:17.