Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[提问] 怎么获取指定 rpid 内容 #824

Open
snowman opened this issue Oct 7, 2024 · 0 comments
Open

[提问] 怎么获取指定 rpid 内容 #824

snowman opened this issue Oct 7, 2024 · 0 comments
Labels
question 这啥呀这是,我不到啊

Comments

@snowman
Copy link

snowman commented Oct 7, 2024

Python 版本: Python 3.11.6

模块版本: 16.2.0

运行环境: Windows


# bilibili_api/comment.py
class Comment:
    def __init__(
        self,
        oid: int,
        type_: CommentResourceType,
        rpid: int,
        credential: Union[Credential, None] = None,
    ):

    async def get_sub_comments(self, page_index: int = 1) -> dict:

async def get_comments(
    oid: int,
    type_: CommentResourceType,
    page_index: int = 1,
    order: OrderType = OrderType.TIME,
    credential: Union[Credential, None] = None,
) -> dict:

get_sub_comments 虽然可以获取到, 但是要遍历全部
get_comments 获取的是顶部回复 (root), 如果没有猜错的话, 因为这里没有 rpid

所以, 貌似没有直接获取 rpid 评论内容的 API?

比如, 点赞的时候会发送以下 payload

POST https://api.bilibili.com/x/v2/reply/action

oid=11324**********&type=1&rpid=24385*******&action=1&csrf=24565***************************

我想知道这里点赞 rpid 内容

@snowman snowman added the question 这啥呀这是,我不到啊 label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 这啥呀这是,我不到啊
Projects
None yet
Development

No branches or pull requests

1 participant