1 Star 7 Fork 4

yijianguanzhu / douyu-hongbao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

douyu-hongbao

介绍

斗鱼自动抢礼物红包工具

下载

  1. 蓝奏云地址:下载

2.0.1更新信息

  1. 修复近期斗鱼服务器TLS疑因版本回溯导致无法使用问题

2.0更新信息

  1. 版本换新,初步提供可视化操作界面。
    • 2.0使用示例
      • 启动程序 启动程序
      • 扫描二维码 扫描二维码
      • 成功登录账号 登录成功
      • 查看站内信 查看站内信
      • 账号设置 账号设置
      • 关于 关于
      • 选择账号 选择账号 选择账号
    • 新功能
      • 账号设置增加了【指定抽奖直播间】属性,设置后,如果抽奖直播间符合设置的房号,将直接参与抽奖,不受其他抽奖属性限制。(注:同其他属性一样,多个房号用英文半角","分隔)
      • 新增每日任务自动领取功能,只领取奖励,不自动做任务。

下载

  1. 蓝奏云地址:下载

1.5.1更新信息

  1. 修复近期斗鱼服务器TLS疑因版本回溯导致无法使用问题

1.5更新信息

  1. 常规更新
  2. 修复删除粉丝牌异常问题

v1.4更新信息

  1. 增加挂机直播间功能(可做斗鱼看直播的活动),详见自定义配置
  2. 增加斗鱼弹幕抽奖功能,详见自定义配置
    • 弹幕抽奖配置示例,描述:只参与鱼翅,Q币,QB,Qb,qb的奖品且金额在20(包含)以上的弹幕抽奖

          # 是否开启弹幕抽奖(默认:true)
          lottery=true
          # 只参与想要的弹幕抽奖奖品,多个使用英文半角","分隔,如鱼翅,Q币,QB,Qb,qb(无默认值)
          lottery_want=鱼翅,Q币,q币,QB,Qb,qb
          # 只参与大于等于该值的弹幕抽奖金额,结合lottery_want属性使用,如=6时,只有鱼翅价值在6以上才参与(无默认值)
          lottery_profit=20
    • 警示:建议设置自己喜欢的奖品,否则参与的抽奖过多,弹幕发言功能会遭到禁封。

    • 通常弹幕发言被禁封,过个几天也会恢复正常。

  3. 现在 config.ini 配置文件支持动态读取内容改变,以后修改配置文件属性,再也不需要重启程序了。

v1.3更新信息

  1. 增加自动删除粉丝牌功能,详见自定义配置
    • 程序启动会先保存已有的粉丝牌,以免误删。
    • 新得到的粉丝牌,删除策略根据账号7天内是否赠送过价值礼物和其他免费礼物结算,如7天内没有赠出过其他道具,粉丝牌将会删除,如7天内赠出过其他道具,粉丝牌将会保留。
    • 其他道具包含价值礼物和其他免费礼物,不包含礼物红包的礼物。
  2. 增加每日自动领取荧光棒、周日自动赠送荧光棒功能,详见自定义配置
    • 荧光棒为均衡赠送策略,假设本周共400个荧光棒,如设置了三个直播间,第一个直播间赠出134个,第二个直播间赠出133个,第三个直播间赠出133个;如设置了两个直播间,第一个直播间赠出200个,第二个直播间赠出200个;如设置了一个直播间,就将荧光棒全部赠送给这个直播间。
    • 房间号为实际房间号,不可设置靓号/vip房间号,否则荧光棒可能无法领取或赠出。

v1.2更新信息

  1. 修复BUG。

  2. 修复礼物码错误导致无法自动赠送火箭问题。

  3. 优化关注取关机制,保证同一个房间在可见的红包雨情况下,不再重复关注取关。

    • 此次改善能够降低斗鱼风险用户侦测系统对账号的风险评估

v1.1.2更新信息

  1. 新增拾起红包功能。

    • 当满足粉丝团参与条件时,会重新拾起被丢弃的红包,仅限于非立即开启的红包。
  2. 修复抢红包时,用户登录信息过期导致的循环BUG。

v1.1更新信息

  1. 优化同一个房间短时间(20秒)内有多个红包的情况下,执行多次关注取关操作问题。

    • v1.0版本中,如果每20秒(内)左右有一个红包(同一房间),假设一分钟内有5个红包,那么最终导致可抢红包可能只有两个。 这是由于延迟取关机制引发的问题。该问题导致抢最后三个红包(假设)时,关注主播的条件已经被前两个红包线程取关了,而后三个红包线程无法感知,导致无法正确抢到红包。
  2. 当获得到办卡(开启小礼物自动赠送),飞机(开启大礼物自动赠送)时,且粉丝牌没有满,则直接加入到粉丝团列表中。

    • 有些房间会在发出【关注主播】的红包后,继而发出【关注+粉丝团】的红包,这次更新让在第一个红包中抢到办卡及以上的同学,能够在第一时间内快速获得满足下一个红包的参与条件。【v1.0版本中,需要等五分钟更新一次粉丝徽章,有时会错过红包】

v1.0初版

  1. 支持斗鱼app扫码登录,登录认证信息过期自动续期。
  2. 自动监控红包,默认十秒监测一次。
  3. 自动关注,自动取关,自动抢红包,自动赠送礼物。
  4. 支持自定义参数配置,详见自定义配置
  5. 新号或等级太低的小号容易抢不到红包,充值就可解决或将账号升级到15级以后再使用。

安装方式

  1. 与正常程序安装方法一致,根据提示操作即可

使用说明

本程序属于绿色软件,不包含任何破坏计算机系统程序。
  1. 注意事项:安装路径不能包含中文名,否则无法启动
  2. 使用步骤:启动程序 -> 扫描二维码

启动程序 扫描二维码 3. core目录核心配置文件,logs目录下存放每日运行日志文件,barrage.log文件记录荧光棒领取信息,clear_fans_card.log文件记录删除粉丝牌信息,cookie.txt账号信息,hongbao.log文件只单独记录礼物赠送信息

新生成配置 4. 运行日志展示:强悍的抢红包速度,速度快的30~40ms一次请求(1H2G的服务器),cookie过期自动续期。

运行日志 5. 礼物赠送日志展示

赠送日志 6. 删除粉丝牌日志展示

删除粉丝牌日志 7. 领取荧光棒日志展示

领取荧光棒日志

自定义配置

在/core/config.ini文件中,可自定义特定参数(首次运行会自动生成):
    [monitor-thread]
      # 每隔多少秒检测一次红包(默认:10秒)
      period=10
      # 想挂机的直播间,多个使用英文半角","分隔,如1111,2222(无默认值)
      hang=
      # 是否开启弹幕抽奖(默认:true)
      lottery=true
      # 只参与想要的弹幕抽奖奖品,多个使用英文半角","分隔,如鱼翅,Q币,QB,Qb,qb(无默认值)
      lottery_want=
      # 只参与大于等于该值的弹幕抽奖金额,结合lottery_want属性使用,如=6时,只有鱼翅价值在6以上才参与(无默认值)
      lottery_profit=
    [handler-thread]
      # 抢红包线程启动偏移量,取值范围:[-2.00,2.00](单位秒)(保留两位小数)(默认:0)
      leftshift=0
    [broker-thread]
      # 小礼物是否自动赠送(大气、666和办卡)(默认:true)
      small=true
      # 大礼物是否自动赠送(飞机、火箭)(默认:false)
      precious=false
    [fans-card-thread]
      # 是否开启删除粉丝牌功能(默认:true)
      clear=true
    [barrage-thread]
      # 每周日自动赠送荧光棒的直播间,多个使用英文半角","分隔,如1111,2222 (无默认值)
      roomId=

交流

  1. QQ群 250097154
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

斗鱼自动抢礼物红包工具 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/yijianguanzhu/douyu-hongbao.git
git@gitee.com:yijianguanzhu/douyu-hongbao.git
yijianguanzhu
douyu-hongbao
douyu-hongbao
master

搜索帮助