Code Monkey home page Code Monkey logo

douyin-live-go's Introduction

抖音直播网页版弹幕爬取 Golang 实现

main.go 填房间地址

go get .
go run .
2023/02/28 22:53:35 [入场] 邻家小哥 直播间  
2023/02/28 22:53:35 [弹幕] 幸福如此 : 你卡了  
2023/02/28 22:53:35 [弹幕] 冷颜. : 你卡了倪总  
2023/02/28 22:53:35 [弹幕] 向上人生 : 卡了  
2023/02/28 22:53:35 [弹幕] 系统体验玩家 : 是她卡了  
2023/02/28 22:53:35 [弹幕] 一生何求 : 换个  
2023/02/28 22:53:35 [弹幕] СаoЫиg   ༽ : 卡了  
2023/02/28 22:53:35 [弹幕] 张三疯 : 1 加 1 等于多少  
2023/02/28 22:53:35 [弹幕] Jay. : 不算不算
2023/02/28 22:53:35 [入场] 淡定 直播间
2023/02/28 22:53:35 [入场] 电动小摩托 直播间
2023/02/28 22:53:35 [入场] 嘿 嘿 直播间
2023/02/28 22:53:35 [入场] 吴.邪 直播间
2023/02/28 22:53:35 [礼物] 可乐 : 粉丝团灯牌 _ 1
2023/02/28 22:53:35 [礼物] 大鹏鹏^O^ : 小心心 _ 1
2023/02/28 22:53:35 [入场] 启 🐰 航 直播间
2023/02/28 22:53:35 [礼物] 九通六水 : 小心心 \* 1
2023/02/28 22:53:35 [入场] 河南阿涛(橱窗有商品) 直播间

douyin-live-go's People

Contributors

ww4396 avatar xiaomiku01 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

douyin-live-go's Issues

连接不上

改了房间id后,直接连接不上,好像是协议更新了

websocket异常

在程序运行一段时间之后会出现socket异常,异常也各不相同
panic: websocket: close 1006 (abnormal closure): unexpected EOF

goroutine 67 [running]:
main.(*Room).read(0xc000092000)
D:/workStation/go/douyin-live-go/room.go:123 +0x2e5
created by main.(*Room).Connect
D:/workStation/go/douyin-live-go/room.go:114 +0x314

panic: concurrent write to websocket connection

goroutine 20 [running]:
github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc00060af90, 0x1, {0x0?, 0x0?, 0x0?})
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:617 +0x52b
github.com/gorilla/websocket.(*messageWriter).Close(0x0?)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:731 +0x45
github.com/gorilla/websocket.(*Conn).beginMessage(0xc000135760, 0xc00060afc0, 0x2)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:480 +0x42
github.com/gorilla/websocket.(*Conn).NextWriter(0xc000135760, 0x2)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:520 +0x45
github.com/gorilla/websocket.(*Conn).WriteMessage(0x0?, 0x0?, {0xc00020c854, 0x4, 0x4})
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:773 +0x152
main.(*Room).send(0xc00005d920)
D:/workStation/go/douyin-live-go/room.go:156 +0xa5
created by main.(*Room).Connect
D:/workStation/go/douyin-live-go/room.go:115 +0x35c

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.