從鏈接獲取視頻URL

[英]Get Video URL from a Link


I try to get Video link from a link, In browser Inspect element video link showing. but when i see Page Source is Empty. I try dom parser and other it not show any

我嘗試從鏈接中獲取視頻鏈接,在瀏覽器中檢查元素視頻鏈接顯示。但是當我看到Page Source是空的時候。我嘗試dom解析器和其他它沒有顯示任何

<?php 
header('Content-type: text/plain');

include 'HTML5/Parser.php';

$html = "http://www.nowvideo.co/mobile/#/videos/029361d6b060a";
$d = HTML5_Parser::parse($html);

echo $d->saveHTML();
?>

How can i get Mp4 link from this url?

我怎么能從這個網址獲得Mp4鏈接?

 http://www.nowvideo.co/mobile/#/videos/029361d6b060a

1 个解决方案

#1


The website you have posted is making an ajax request to

您發布的網站正在向您發送ajax請求

http://www.nowvideo.co/mobile/ajax.php?videoId=029361d6b060a

which returns a JSON object:

它返回一個JSON對象:

{
    "total_count" : 1,
    "items" : [{
            "id" : "029361d6b060a",
            "title" : "Infini.2015.HDRip.XviD.AC3-EVO",
            "desc" : "",
            "pic" : "play.png",
            "fullurl" : "video.php?id=029361d6b060a",
            "download" : "video.php?id=029361d6b060a&download=1&key=c17e9dc935424de478ccff158806178f",
            "videoLink" : "http:\/\/www.nowvideo.co\/video\/"
         }
    ]
}

Then I presume as the other video web sites do it, there is some javascript logic that processes this JSON object and constructs links to videos so that it would not be easy to copy such videos.

然后我假設其他視頻網站都這樣做,有一些javascript邏輯處理這個JSON對象並構建視頻鏈接,這樣就不容易復制這些視頻。

Your best option would be to try to reverse engineer such javascript logic, but I think this can be illegal.

你最好的選擇是嘗試逆向工程這樣的javascript邏輯,但我認為這可能是非法的。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/05/10/720e3fc68aec3ed1ee7e4cfea4227dfd.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com