All Projects → lkeme → NeteaseMusicLottery

lkeme / NeteaseMusicLottery

Licence: MIT License
网易云音乐动态互动抽奖测试学习

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to NeteaseMusicLottery

Square-Player
🍨 一个简洁到极致的单曲播放器
Stars: ✭ 19 (-20.83%)
Mutual labels:  netease, 163music
ethereum-lottery
Ethereum smart contract lottery: 5 people send 0.2 ether, contract sends 0.8 ethers to one of the senders at random and 0.2 ethers to givedirectly
Stars: ✭ 22 (-8.33%)
Mutual labels:  lottery
foot
foot是一个集足球数据采集器,简单分析的项目.AI足球球探为程序全自动处理,全程无人为参与干预足球分析足球预测程序.程序根据各大指数多维度数据,结合作者多年足球分析经验,精雕细琢,集天地之灵气,汲日月之精华,历时七七四十九天,经Bug九九八十一个,编码而成.有兴趣的朋友,可以关注一下公众号AI球探(微信号ai00268).
Stars: ✭ 96 (+300%)
Mutual labels:  lottery
taiwanlottery
🇹🇼台灣樂透爬蟲🐛(台灣各類型樂透爬蟲)😄
Stars: ✭ 18 (-25%)
Mutual labels:  lottery
lottery2
大转盘抽奖 canvas版[请手机上预览哦]
Stars: ✭ 34 (+41.67%)
Mutual labels:  lottery
163Music
163music spider by scrapy.
Stars: ✭ 60 (+150%)
Mutual labels:  163music
Neteasecloudmusic
仿网易云音乐安卓客户端V6.0
Stars: ✭ 213 (+787.5%)
Mutual labels:  netease
react-native-super-lottery
react native prize wheel 9宫格抽奖
Stars: ✭ 38 (+58.33%)
Mutual labels:  lottery
almost-components uniapp
uni-app 使用的多端组件集合,支持APP、H5、小程序
Stars: ✭ 37 (+54.17%)
Mutual labels:  lottery
flutter-netease
深度还原网易严选webApp,Flutter项目,接口为真实数据。项目已完善
Stars: ✭ 231 (+862.5%)
Mutual labels:  netease
parsexiami
PHP解析虾米高品质音乐
Stars: ✭ 31 (+29.17%)
Mutual labels:  netease
cover
get NetEase CloudMusic Cover
Stars: ✭ 31 (+29.17%)
Mutual labels:  netease
feeluown-core
提供音乐播放器的一些常见组成模块(已经合并到 feeluown 项目中)
Stars: ✭ 30 (+25%)
Mutual labels:  netease
pancakeswap-lottery
🥞 A Python client for accessing PancakeSwap Lottery smart contract information through Web3.py
Stars: ✭ 30 (+25%)
Mutual labels:  lottery
xposed.leewp14.NEClient
forked and modified from bin456789/Unblock163MusicClient-Xposed
Stars: ✭ 81 (+237.5%)
Mutual labels:  netease
Unblockneteasemusic
Revive unavailable songs for Netease Cloud Music (Golang)
Stars: ✭ 253 (+954.17%)
Mutual labels:  netease
lottery
🍀 Lottery CLI BRAZIL
Stars: ✭ 29 (+20.83%)
Mutual labels:  lottery
krypto-lottery
A lottery game implementation on Ethereum blockchain using Solidity
Stars: ✭ 44 (+83.33%)
Mutual labels:  lottery
NeteaseCheckIn
ONLY FUNCTION : Netease checkin 网易云自动签到
Stars: ✭ 12 (-50%)
Mutual labels:  netease
advanced-solidity-lottery-application
This is an advanced lottery example smart contract on solidity Ethereum. It has CRUD examples required to create an application on solidity Ethereum.
Stars: ✭ 49 (+104.17%)
Mutual labels:  lottery

NeteaseMusicLottery

公告

网易云音乐动态互动抽奖测试学习

安装

  1. 克隆项目代码
git clone https://github.com/lkeme/NeteaseMusicLottery.git
cd NeteaseMusicLottery
  1. 安装环境依赖 env python3.6+
pip install -r requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. 导入数据文件 mysql中创建数据库 netease, 并导入数据结构netease.sql
create DATABASE netease;
use netease;
source /your path/netease.sql;
  1. 复制配置文件
# linux
cd Config && cp setting.py.example setting.py
# windows
手动重命名 
  1. 填写配置信息
# 修改文件 --> Config/setting.py 
# """ 网易云账号配置 """
ACCOUNTS = [
    # default 扫描账号 (扫描、转发、删除等) 必须定义一个
    # valid 有效账号 (转发、删除等) 视情况定义增加
    # invalid 无效账号 (不做任何操作)
    {
        "user_id": "",
        "username": "",
        "password": "",
        "type": "default",
    },
    {
        "user_id": "0",
        "username": "your user name",
        "password": "your password",
        "type": "invalid",
    },
    {
        "user_id": "0",
        "username": "your user name",
        "password": "your password",
        "type": "invalid",
    }
]

""" 通知服务配置 """
NOTIFICATION = {
    # 开关
    "enable": True,
    "type": "server_chan",
    # Server酱
    "server_chan":
        {
            "key": "",
        },
    # tg_bot  https://github.com/Fndroid/tg_push_bot
    "tg_bot":
        {
            "api": "https://xxxx.com/sendMessage/:Token",
        },
    # 自用通知服务
    "personal":
        {
            "url": "",
            "channel": ""
        }
}

""" MYSQL数据库配置 """
DATABASES = {
    "default": {
        "HOST": "localhost",
        "PORT": 3306,
        "USERNAME": "root",
        "PASSWORD": "123456",
        "DATABASE": "netease",
    }
}

使用

python main.py

打赏

流程

  1. 扫描分为匹配扫描(页面匹配) 、去重扫描(区间穷举)两种。
  2. 中奖检测(1 * 60 * 60 == 3600),开奖后一小时的动态。
  3. 转发时间(12 * 60 * 60 == 43200) ,12小时内开奖的动态。
  4. 删除时间(6 * 60 * 60 == 21600) ,开奖后6小时的动态。
  5. 中奖标记删除但实际未删除,删除动态每1小时检测但12小时才会删除。
  6. 考虑server酱限制,允许错误10次,每次休眠30s,未成功直接跳过。
  7. 完整扫描部分4小时一次, 防止异常,分段扫描, 每段1000(可调节)。
  8. 迷你扫描部分14小时一次, 会加上去重扫描消耗时间,理论时间不和完整扫描冲突。
  9. 错误统一休眠60s一次。
  10. 去重扫描实际是阻塞的,部分功能的时间可能会出现延迟。
  11. 自用设置不用管,留空就行

ps. 以上的时间并不精准,可能会出现正负值。

License 许可证

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].