我如何在 Rebol 中读取此网址?

发布于 2024-09-04 02:47:20 字数 1225 浏览 2 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

或十年 2024-09-11 02:47:20

在《Rebol 3》中,你会得到:

** Access error: protocol error: "Server error: HTTP/1.1 403 Forbidden"

你得到的信息是《Rebol 2》中不那么雄辩的表达方式。 (您也可以在 Firebug 中输入它,然后发现使用这个原始 URL 不起作用。)

我想 YouTube 只会在请求的 HTTP 标头与特定模式匹配时才允许您获取流。它可能会寻找专门为您的会话制作的 cookie,并设计为在特定时间后过期。

据我了解,YouTube 不太热衷于第三方下载视频数据。他们曾经有一个 get_video API,但似乎已禁用它。因此,您要么必须伪造一个 cookie,让他们认为您是他们的玩家之一,要么找到对此类应用程序更友好的服务。

In Rebol 3 you get:

** Access error: protocol error: "Server error: HTTP/1.1 403 Forbidden"

The message you're getting is Rebol 2's not-so-eloquent way of saying that. (You can also enter it in Firebug and see that using this raw URL does not work.)

I'd imagine that YouTube will only let you get the stream if the requesting HTTP header matches a certain pattern. Among potential things it might look for is a cookie specifically crafted for your session and designed to expire after a certain time.

As far as I understand it YouTube is not too keen on third party downloads of video data. They used to have a get_video API but appear to have disabled it. So you'll either have to fake up a cookie and make them think you're one of their players, or find a service which is friendlier to this sort of application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文