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

直播间发送表情包的支持 #766

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open

直播间发送表情包的支持 #766

wants to merge 16 commits into from

Conversation

TZFC
Copy link
Contributor

@TZFC TZFC commented May 25, 2024

直播间发送表情包

    1. 新增LiveRoom.send_emoticon 及 api 相关参数

问:是否可以和send_danmaku合并?用的是同一个api借口,但是参数组不同。个人认为分开更直观。

@TZFC
Copy link
Contributor Author

TZFC commented May 25, 2024

测试见:Open In Colab

@z0z0r4
Copy link
Collaborator

z0z0r4 commented May 25, 2024

文字发送和消息发送在 WEB 端界面的定义是不同操作,传参也都不同,没必要合并

@z0z0r4
Copy link
Collaborator

z0z0r4 commented May 25, 2024

相应的,如果有余力,可以补充下拉取表情包信息的接口

例如 https://api.live.bilibili.com/xlive/web-ucenter/v2/emoticon/GetEmoticons?platform=pc&room_id=21622811

@z0z0r4
Copy link
Collaborator

z0z0r4 commented May 25, 2024

测试见:Open In Colab

访问被拒

@TZFC
Copy link
Contributor Author

TZFC commented May 25, 2024

啊,忘记开放权限了。现在应该可以了

@z0z0r4
Copy link
Collaborator

z0z0r4 commented May 25, 2024

我这边没空 review 测试,也就看看...等个有缘人合并吧

@TZFC
Copy link
Contributor Author

TZFC commented May 25, 2024

获取表情包的相关方法和文档已完成。目前获取不到充电表情(网页端是没有充电表情功能的,只有手机端才有)。通过请教大佬抓包,发现请求的时候Referer是:https://live.bilibili.com/blanc/23086860?liteVersion=true&spmid_source=client 可能需要修改referer。这个就得触碰network模块了。我没了解过这些,不敢碰。
测试见:Open In Colab

@z0z0r4
Copy link
Collaborator

z0z0r4 commented May 25, 2024

获取表情包的相关方法和文档已完成。目前获取不到充电表情(网页端是没有充电表情功能的,只有手机端才有)。通过请教大佬抓包,发现请求的时候Referer是:live.bilibili.com/blanc/23086860?liteVersion=true&spmid_source=client 可能需要修改referer。这个就得触碰network模块了。我没了解过这些,不敢碰。 测试见:Open In Colab

是同一个接口不同 referer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants