Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否实现后台抓取弹幕 #15

Open
leyuansugar opened this issue Aug 18, 2020 · 3 comments
Open

能否实现后台抓取弹幕 #15

leyuansugar opened this issue Aug 18, 2020 · 3 comments

Comments

@leyuansugar
Copy link

网页窗口一关,弹幕抓取就停了,可否实现后台一直抓取,不受前端窗口影响,除非手动点击停止抓取/

@Crawler995
Copy link
Owner

@leyuansugar 这个项目的设计就是网页窗口关掉就会向后端发出信号 让后端关掉抓取的工作 你可以在代码里面改一下 https://github.com/Crawler995/DouyuBarrage-Pro/blob/master/dybarrage-server/src/server.ts 这个里面有disconnect信号对应的回调函数 可以去掉

@leyuansugar
Copy link
Author

@leyuansugar 这个项目的设计就是网页窗口关掉就会向后端发出信号 让后端关掉抓取的工作 你可以在代码里面改一下 https://github.com/Crawler995/DouyuBarrage-Pro/blob/master/dybarrage-server/src/server.ts 这个里面有disconnect信号对应的回调函数 可以去掉

好的,感谢。另外想问下,你爬取的时候,有办法获取到房间的贡献榜数据吗?

@yuehun
Copy link

yuehun commented Dec 19, 2020

@leyuansugar这个项目的设计就是网页窗口关掉就会向后发出信号让放置关掉抓取的工作你可以在代码里面改一下https://github.com/Crawler995/DouyuBarrage-Pro/blob/ master / dybarrage-server / src / server.ts这个里面有disconnect信号对应的某些函数可以去掉

老哥 这个要去掉那里可以后台抓取,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants