Youtube“实时聊天"直接网址 [英] Youtube "live chat" direct url

查看:69
本文介绍了Youtube“实时聊天"直接网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从 youtube 实时视频下载(使用 cURL)和处理(PHP)聊天消息,但我确实设法找到了所谓的热门聊天"的 URL.应该包括什么参数来获得实时聊天"?(未过滤的消息)代替?下载热门聊天"的典型 URL看起来是这样的: https://www.youtube.com/live_chat?continuation=0ofMyANxGlhDaWtxSndvWVZVTk5jRzR4Y1V4MVpFWXRlbUkwVFRSaWNYaE1TV0ozRWd0SWNGcEJaWG95YjFselFSb1Q2cWpkdVFFTkNndEljRnBCWlhveWIxbHpRU0FCMAGCAQIIBIgBAaABgL6nuLjs8AKyAQA%253D

I must download (using cURL) and process (PHP) chat messages from youtube live videos but I did manage to find the url for only the so called "Top Chat". What parameter should be included to get the "Live Chat" (unfiltered messages) instead? A typical URL to download the "Top Chat" looks like this: https://www.youtube.com/live_chat?continuation=0ofMyANxGlhDaWtxSndvWVZVTk5jRzR4Y1V4MVpFWXRlbUkwVFRSaWNYaE1TV0ozRWd0SWNGcEJaWG95YjFselFSb1Q2cWpkdVFFTkNndEljRnBCWlhveWIxbHpRU0FCMAGCAQIIBIgBAaABgL6nuLjs8AKyAQA%253D

可以通过选择实时聊天"来访问实时聊天.在左上角写着热门聊天"

The Live chat can be accessed by selecting "Live chat" on the top left where it says "Top chat"

谢谢

推荐答案

我认为这是不可能的,Live Chat 仅通过后续的 Ajax 调用加载、分页和实时更新.没有一个 URL 可以下载所有消息 AFAIK.

I don't think that's possible, the Live Chat is only loaded via subsequent Ajax calls, paginated and updated in realtime. There's not a single URL to download all the messages AFAIK.

我建议使用 官方 Google API 来做这个.

I would suggest to use the official Google Apis to do this.

这篇关于Youtube“实时聊天"直接网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆