All Projects β†’ Athlon1600 β†’ Youtube Downloader

Athlon1600 / Youtube Downloader

Licence: mit
πŸ‘ A much faster alternative to youtube-dl built for PHP applications. Working as of 2021-02-27

Projects that are alternatives of or similar to Youtube Downloader

Candy
🍭 Cross-platform YouTube-downloader with playlist and channel support as well as build-in audio / video converter.
Stars: ✭ 229 (-51.69%)
Mutual labels:  download-videos, youtube-dl, youtube-downloader, youtube
Youtub.ly Android
An android app to download πŸ“Ή videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-96.41%)
Mutual labels:  download-videos, youtube-dl, youtube-downloader, youtube
ytqck.github.io
YouTube quick ⚑ Search and Download Music for Free.
Stars: ✭ 18 (-96.2%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtube Mp3 Downloader
Extract music from YouTube videos
Stars: ✭ 187 (-60.55%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press πŸ’Ύ
Stars: ✭ 16 (-96.62%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
YouTube-Downloader
An easy-to-use, YouTube video downloader, without pesky ads or malware.
Stars: ✭ 22 (-95.36%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Firedm
python open source (Internet Download Manager) with multi-connections, high speed engine, based on python, LibCurl, and youtube_dl https://github.com/firedm/FireDM
Stars: ✭ 977 (+106.12%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
Get It
A macOS GUI for youtube-dl
Stars: ✭ 483 (+1.9%)
Mutual labels:  download-videos, youtube-dl, youtube-downloader
Smd
Spotify Music Downloader
Stars: ✭ 822 (+73.42%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
Youtubevideodownloader
Download videos from YouTube and many other video sites
Stars: ✭ 39 (-91.77%)
Mutual labels:  download-videos, youtube-dl, youtube-downloader
yt
Fine-tuning the use of youtube-dl for audio and videophiles
Stars: ✭ 39 (-91.77%)
Mutual labels:  youtube-dl, youtube-downloader, download-videos
Yturl
YouTube videos on the command line
Stars: ✭ 218 (-54.01%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
Youtube Music
YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
Stars: ✭ 376 (-20.68%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
ypc
Convert text/spotify/deezer albums/playlists to youtube urls and audio/video files.
Stars: ✭ 17 (-96.41%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtube Dl Android
πŸ“¦πŸ“¦Video downloader for Android - Download videos from Youtube, Facebook, Twitter, Instagram, Dailymotion, Vimeo and more than 1000 other sites
Stars: ✭ 322 (-32.07%)
Mutual labels:  youtube-dl, youtube-downloader, youtube
download audioset
πŸ“ This repo makes it easy to download the raw audio files from AudioSet (32.45 GB, 632 classes).
Stars: ✭ 53 (-88.82%)
Mutual labels:  youtube, youtube-dl
YouTube-Downloader
No description or website provided.
Stars: ✭ 34 (-92.83%)
Mutual labels:  youtube-dl, youtube-downloader
URTube
URTube, a YouTube video to MP3 downloader built in NodeJs and Electron
Stars: ✭ 20 (-95.78%)
Mutual labels:  youtube-dl, youtube-downloader
podpodge
Convert YouTube playlists to audio-only RSS feeds for podcast apps to consume.
Stars: ✭ 32 (-93.25%)
Mutual labels:  youtube, youtube-dl
Youtube To Mp3
⚑️Electron application to convert and download YouTube videos as MP3s
Stars: ✭ 430 (-9.28%)
Mutual labels:  youtube-downloader, youtube

youtube-downloader

This project was inspired by a very popular youtube-dl python package:
https://github.com/rg3/youtube-dl

Yes, there are multiple other PHP-based youtube downloaders on the Internet, but most of them haven't been updated in years, or they depend on youtube-dl itself.

Pure PHP-based youtube downloaders that work, and are kept-up-to date just do not exist.

This script uses no Javascript interpreters, no calls to shell... nothing but pure PHP with no heavy dependencies either.

That's all there is to it!

⚠️ Legal Disclaimer

This program is for personal use only. Downloading copyrighted material without permission is against YouTube's terms of services. By using this program, you are solely responsible for any copyright violations. We are not responsible for people who attempt to use this program in any way that breaks YouTube's terms of services.

Demo App

This may not work at all times, because YouTube puts a short ban on the server if it receives too many requests from it.

Deploy your own App

on Heroku:

Deploy

Create a FREE account first if you do not yet have one:
https://signup.heroku.com/

Installation

Recommended way of installing this is via Composer:

composer require athlon1600/youtube-downloader "^3.0"

Run locally:

php -S localhost:8000 -t vendor/athlon1600/youtube-downloader/public

Previous versions

Instructions for installing & using Version 2 can be found here:
https://github.com/Athlon1600/youtube-downloader/tree/2.x

Usage

use YouTube\YouTubeDownloader;
use YouTube\Exception\YouTubeException;

$youtube = new YouTubeDownloader();

try {
    $downloadOptions = $youtube->getDownloadLinks("https://www.youtube.com/watch?v=aqz-KE-bpKQ");

    if ($downloadOptions->getAllFormats()) {
        echo $downloadOptions->getFirstCombinedFormat()->url;
    } else {
        echo 'No links found';
    }

} catch (YouTubeException $e) {
    echo 'Something went wrong: ' . $e->getMessage();
}

getDownloadLinks method returns a DownloadOptions type object, which holds an array of stream links - some that are audio-only, and some that are both audio and video combined into one.

For typical usage, you are probably interested in dealing with combined streams, for that case, there is the getCombinedFormats method.

Other Features

  • Stream YouTube videos directly from your server:
$youtube = new \YouTube\YouTubeStreamer();
$youtube->stream('https://r4---sn-n4v7knll.googlevideo.com/videoplayback?...');

How does it work

A more detailed explanation on how to download videos from YouTube will be written soon. For now, there is this:

https://github.com/Athlon1600/youtube-downloader/pull/25#issuecomment-439373506

Other Links

To-do list

  • Add ability to solve YouTube Captcha and avoid HTTP 429 Too Many Requests errors.
  • Add ability to download video and audio streams separately, and merge the two together using ffmpeg. Just like youtube-dl does!
  • Optional command that finds ALL video formats.
  • Fetch additional metadata about the video without using YouTube API.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].