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

后台抓取弹幕要删掉那个地方 #18

Open
yuehun opened this issue Dec 19, 2020 · 2 comments
Open

后台抓取弹幕要删掉那个地方 #18

yuehun opened this issue Dec 19, 2020 · 2 comments

Comments

@yuehun
Copy link

yuehun commented Dec 19, 2020

自己尝试了一下,不行诶,有时间能不能说一下

@Crawler995
Copy link
Owner

Crawler995 commented Feb 8, 2021

十分抱歉,学业繁忙,见谅。
server.ts的第101行表示当服务端接收到disconnect信号(即客户端页面关闭)时调用RoomManager.removeRoom()函数,该函数中调用了stopRoomCrawlProcess()函数,即停止抓取,所以把该函数注释掉理论上就能后台抓取。当然可能有很多细节还需要处理,试试看。

@Crawler995
Copy link
Owner

当然更优雅的做法是你自己单独写个项目,把我用于抓弹幕的那些逻辑文件拿出来放在你的项目里当作库使用即可。有时间的话我也会考虑单独弄一个轻量的、能直接在命令行里面操作的抓取程序。

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

2 participants