Answer the question
In order to leave comments, you need to log in
How to download youtube video in php?
You need to download a video from youtube via a link to the host server. How to do it? Git scripts don't work (jeckman/YouTube-Downloader).
Answer the question
In order to leave comments, you need to log in
If nothing works from opensource (which is rather unexpected!), what remains is a complete emulation of the browser running as a service that can be accessed from PHP using some interface (Selenium and the like).
Last year I used this library
https://github.com/jeckman/YouTube-Downloader
Very easy to use, but the support is a little behind the development of youtube. At one time I didn’t download some videos, now I don’t know how things are.
Then I transferred the script to this utility
https://github.com/ytdl-org/youtube-dl
It downloads everything and always, excellent support, there is a version for Windows and Linux. The only negative is that this is still a utility and you need to write a wrapper
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question