Skip to content

如何查询章节的本子号 #257

Closed Answered by hect0x7
fordeslorn asked this question in Q&A
Discussion options

You must be logged in to vote

可以参考:https://jmcomic.readthedocs.io/zh-cn/latest/tutorial/0_common_usage/#_3

你要的应该是photo_id吧,比如 18comic.vip/photo/333,这个章节(photo)的id就是333,333就是你要的章节的本子号

# 1. 先获取章节所在的本子
album = client.get_album_detail(666)
# 2. 获取本子的第一章节
photo = album[0]
# 3. 获取章节的id
pid = photo.id

Replies: 2 comments 4 replies

Comment options

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

You must be logged in to vote
4 replies
@hect0x7
Comment options

@fordeslorn
Comment options

@hect0x7
Comment options

@fordeslorn
Comment options

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