Skip to content

Commit

Permalink
太那几说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjj1024 committed Dec 30, 2023
1 parent 8bd4f84 commit e1faf31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protoc -I . --python_out=. ./proto/dy.proto

## 运行

然后打开浏览器,打开抖音直播,然后将直播地址黏贴到main.py中,然后运行程序即可看到效果
然后打开浏览器,打开抖音直播,然后将直播地址黏贴到config.py的LIVE_ROOM_URL中,然后运行main.py程序即可看到效果
注意:如果要获取排名,需要将时间间隔设置大一点,否则抓取频繁会获取不到数据:打包房间人数失败

```shell
Expand All @@ -43,7 +43,7 @@ LOG_LEVEL = ""
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"

# 直播信息配置:直播地址,直播用户排名,直播排名抓取间隔,直播推送到后台,推送到后台地址
LIVE_ROOM_URL = ""
LIVE_ROOM_URL = "直播间地址"
LIVE_RANK_LIST = True
# 获取礼物排名时间间隔
LIVE_RANK_INTERVAL = 5
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
LIVE_HTTP_SEND = True
# 多久向服务端推送一条消息
LIVE_SEND_INTERVAL = 3
# HTTP推送地址
# HTTP推送地址:普通用户不用管下面的配置,需要将直播数据推送到你们服务器的才配置
LIVE_WEB_SEND_URL = "http://************/game/gamemgnt"
# 一场比赛唯一的UUID
GAME_UUID = "157ae45b-263b-414a-8976-6d2ad210a7e8"
Expand Down

0 comments on commit e1faf31

Please sign in to comment.