如何获取动态视频 URL
我正在寻找一个解决方案,从视频网站获取视频 URL。
这是一个示例视频:XXXX
这是视频的动态链接:XXX
因为它是动态的,我找不到 url,或者不知道 url 是如何在 php 中生成的。我搜索了 php 函数,但没有成功。
im looking for a Solution, to get a Video URL from a VideoWebsite.
Here is a sample video: XXXX
And here is the dynamic link to the video: XXX
Cause its dynamic i cant find the url, or have no clue how the urls get generated in php. I searched for php functions, but had no luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须解析(并且可能运行)嵌入并负责播放视频的实际 SWF 文件,并查看它发出哪些请求来获取实际内容 URL。
在纯 PHP 中执行此操作是一项高度复杂的工作(如果可能的话),不适合胆小的人。我不知道有现成的解决方案可以做到这一点。
You would have to parse (and probably run) the actual SWF file that gets embedded and is responsible for playing the video, and see what requests it makes to get that actual content URL.
Doing this in pure PHP is a highly complex enterprise (if possible at all) and not for the faint of heart. I'm not aware of a ready-made solution that does this.
虽然这并不能回答您问题的技术方面,但如果您正在解析其他人网站上的视频,您最好联系网站/内容所有者并询问如何正确链接到他们的内容。
Though this doesn't answer the technical side of your question, if you're parsing videos from someone else's website, you might be best off contacting the site/content owners and asking how you can properly link to their content.
您可以使用此链接获取普通播放器 SWF:
其中 Clip_id 包含与 url 中看到的相同的 id。我想这是最好的妥协,因为我怀疑 CollegeHumour 希望您获得普通电影,这也可能导致版权问题。
You could use this link to get the plain player SWF:
where clip_id holds the same id as seen in the url. I guess this is the best compromise as I doubt CollegeHumour wants you to get the plain movie, which also may lead to copyright issues.