获取Openload上的唯一下载链接 [英] Get the unique download link on Openload

查看:141
本文介绍了获取Openload上的唯一下载链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算制作Android移动视频流应用程序。视频主要由Openload.co托管,因此视频可以在移动设备上的播放器中打开,必须成功恢复视频Openload的直接链接。我需要用PHP编写代码。我尝试使用file_get_contents或Curl在页面的源代码中检索它,但没有任何内容。在检索源代码之前,file_get_contents和Curl不会加载页面及其脚本。除了视频的链接是唯一的链接。每次刷新页面时它都会更改。该链接由javascript代码生成。

I plan to make an Android mobile video streaming application. The videos are mostly hosted by Openload.co, so that the videos can open in a player on the mobile one must succeed in recovering the direct link of the video Openload. I need to code this in PHP. I tried to retrieve that in the source code of the page with a file_get_contents or a Curl, but nothing does. The file_get_contents and Curl do not load the page and its scripts before retrieving the source code. Except that the link of the video is a unique link. It changes every time the page is refreshed. The link is generated by javascript code.

例如,此处是视频的嵌入链接: https://openload.co/embed/z_wuuTTJSCg/

An example, here is the embed link of the video: https://openload.co/embed/z_wuuTTJSCg/

在源代码中通过检查项目(或者开发者控制台我不知道,在你的浏览器上),你可以看到这一行:

In the source code via inspect the item (or developer console I don't know, on your browser), you can see the line:

这一行是id,date,IP和一个标记。 (例如:z_wuuTTJSCg~1496728099~149.91.0.0~rIj0zw9c)

In this line is the id, date , IP and a token. (Example: z_wuuTTJSCg~1496728099~149.91.0.0~rIj0zw9c)

此行中的内容添加到此链接: https://openload.co/stream/ (例如:openload.co/z_wuuTTJSCg~1496728099〜149.91.0.0〜rIj0zw9c)

What is in this line is added to this link: https://openload.co/stream/ (example: openload.co/z_wuuTTJSCg~1496728099~149.91.0.0~rIj0zw9c)

就像那样。

如果你直接用view-source:查看这个页面的源代码,你会看到在指定的行中将标记这里是链接。

If you look at the source code of this page directly with "view-source:" you will see that in the line designate there will be marked "HERE IS THE LINK".

推荐答案

获取openload链接的最简单方法,使用youtube-dl导致你不能用PHP& JS

Most easiest way to get openload link, just use youtube-dl cause you can't done that with PHP & JS

这篇关于获取Openload上的唯一下载链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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