Giter VIP home page Giter VIP logo

bilibili-toolkit's Introduction

- Bilibili Toolkit -

🛠️ 哔哩哔哩(B站)辅助工具箱,支持Cookie/Token/Password融合持久化登录与多用户操作

功能

组件 版本 描述
login 2020/7/4 登录
get_user_info 2019/9/15 获取用户信息
set_privacy 2018/7/24 修改隐私设置
silver_to_coin 2018/8/8 银瓜子兑换硬币
watch 2020/7/20 观看
like 2020/7/20 点赞
reward 2020/7/20 投币
favour 2020/7/20 收藏
combo 2020/7/20 三连推荐
share 2020/7/20 分享
follow 2018/7/8 关注
follow_batch 2020/7/2 批量关注
ban 2021/2/19 拉黑
ban_batch 2021/2/19 批量拉黑
danmaku_post 2020/7/20 弹幕发送
comment_like 2018/6/27 评论点赞
comment_post 2019/8/3 评论发表
dynamic_like 2018/6/29 动态点赞
dynamic_repost 2019/3/11 动态转发
dynamic_purge 2019/3/11 动态清理
system_notice 2019/8/3 系统通知查询
mall_rush 2019/9/15 会员购抢购
mall_coupon 2019/3/3 会员购优惠卷领取
mall_order_list 2019/9/15 会员购订单列表查询
mall_coupon_list 2019/8/4 会员购优惠卷列表查询
mall_prize_list 2019/8/3 会员购奖品列表查询
live_prize_list 2019/8/3 直播奖品列表查询

使用指南

二进制版本

Release页面下载并解压与您的平台适配的压缩包,修改默认配置文件config.toml后运行可执行文件bilibili即可

若要加载非默认配置文件,将其路径作为命令行参数传入即可

源代码版本

  1. 克隆或下载本代码仓库,并修改默认配置文件config.toml
git clone https://github.com/Hsury/Bilibili-Toolkit.git
cd Bilibili-Toolkit
nano config.toml
  1. 安装Python 3.6或更高版本,并使用pip安装依赖
pip install -r requirements.txt -U -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. 启动脚本
python bilibili.py

Docker版本

  1. 安装Docker

  2. 下载默认配置文件config.toml并根据需求修改

  3. 启动容器,并挂载配置文件

docker run --rm -it -v [YOUR PATH TO CONFIG.TOML]:/app/config.toml zsnmwy/bilibili-toolkit

若要加载代理池,补充参数-v [YOUR PATH TO PROXY.TXT]:/app/proxy.txt以挂载代理列表文件

图形验证码识别API

使用CNN卷积神经网络构建,已实现对登录、评论验证码的自适应识别

requests.post("https://bili.dev:2233/captcha", json={'image': base64.b64encode(image).decode("utf-8")})

交流

QQ群:956399361

捐赠

鸣谢

本项目的灵感与使用到的部分API来自以下项目:

czp3009/bilibili-api

许可证

Bilibili Toolkit is under The Star And Thank Author License (SATA)

本项目基于MIT协议发布,并增加了SATA协议

您有义务为此开源项目点赞,并考虑额外给予作者适当的奖励 ∠( ᐛ 」∠)_

bilibili-toolkit's People

Contributors

1574242600 avatar eswzy avatar hsury avatar nyamisty avatar zsnmwy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bilibili-toolkit's Issues

会员购抢购无法正常使用

行数995的url get request所返回的反应是空的,经过几个测试几个商品之后获取的结果都为相同,不知道是url地址出错了还是其他原因,希望大佬能够修复一下
image

无法加载config.toml

程序运行后提示如下:
无法加载config.toml
�밴������˳�

Process finished with exit code 0

用户名密码登入失败

  • 从返回的信息上看是高危风控,不确定是不是个别行为,遇到相同情况的请留个爪:flushed:
  • 打开返回的url,里面是个短信验证,发短信还需要过极验拖拽,诸君有没有好一点的解决方案。。。
{
	"ts": 时间戳,
	"code": 0,
	"data": {
		"status": 2,
		"url": "https://passport.bilibili.com/account/mobile/security/managephone/phone/verify?tmp_token=xx&requestId=xx&source=risk",
		"message": "您的账号存在高危异常行为,为了您的账号安全,请验证手机号后登录帐号"
	}
}

吐槽下。。。。。感觉好不走心。。。。。

使用Docker版本那块。

1、如果挂载配置文件。在容器启动的时候,会git更新,然后就会代码冲突。。。所以docker镜像可以更新了。。。

2、然后如果配置文件的任意一个配置缺失,就会各种抛弃异常。。。。 读不到配置,默认就不开启,不好么?

感觉好不走心。。。。。

API密钥疑似已被禁用

我尝试通过密码的方式登录时返回登录异常:

{
    'ts': 1618650672,
    'code': 0,
    'data': {
        'status': 2,
        'url': 'https://www.bilibili.com/blackboard/activity-loginwarning.html',
        'message': '你的帐号存在异常问题,请使用哔哩哔哩手机端APP最新版本验证后登录'
    }
}

建议更换密钥,可参考此链接

批量取关

大佬,看见了批量关注功能,请问可以有批量取关的功能吗

请问要如何新添加功能呢?

我在config.toml中添加了新的方法
[get_image]
enable = true
user_input = ["6823116"]

然后在bilibili.py中写了方法,但是不知道是怎么进行调用的
export_process = Process(target=export, args=(queue, config))
export_process.start()
是在这里进行的调用吗?调试没有看到怎么进行的,望大佬解答。

抢购模块相关

抢购模块可以支持macOS系统么?
有这部分支持的计划么?

部分功能不可用

疑似 B 站接口调整,启动运行后异常信息:

Task exception was never retrieved
future: <Task finished coro=<Notifier.__exec_one_step() done, defined at notifier.py:42> exception=TypeError("unsupported operand type(s) for +=: 'NoneType' and 'NoneType'")>
Traceback (most recent call last):
  File "notifier.py", line 46, in __exec_one_step
  File "notifier.py", line 20, in notify
  File "user.py", line 113, in accept
  File "tasks\live_daily_job.py", line 280, in send_gift
  File "tasks\live_daily_job.py", line 239, in send_medal_gift
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'

不可用功能:

  • 网页端观看任务未完成(概率出现)
  • 3查看持有勋章状态.不可用

:)

请问这个watch函数可用吗?

这里的观看在观看后是能够增加视频的播放量吗,还是说只是进行了一个观看这个动作,没有之后长时间的观看呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.