Home > Backend Development > PHP Tutorial > How to use a crawler to obtain video files from the zetv website?

How to use a crawler to obtain video files from the zetv website?

WBOY
Release: 2016-08-04 09:19:14
Original
3410 people have browsed it

http://www.zetv.com.cn/play.a... How can I obtain the video files?

Reply content:

http://www.zetv.com.cn/play.a... How can I obtain the video files?

My idea is to get all the content of the page through curl, then use regular matching to find the content you need, and then create a download request.

Take a look, this video uses the rtmp protocol
How to use a crawler to obtain video files from the zetv website?

RTMP Encyclopedia, you can’t get videos through http. If you really need to download, there is a way. There is a software called rtmpdump that can be downloaded. http://rtmpdump.mplayerhq.hu/ I tried it and it can be downloaded, but the speed is a bit slow. Slow.

<code>在cmd里使用:
rtmpdump -r rtmp://218.28.177.199:1935/vod2/mp4/xxsd/20160727092517877544/720p.mp4 -o m.mp4

记得-o参数,不然cmd秒奔</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template