nodetube
v0.5.1
Published
Very simple, Fast Youtube downloader from Pytube
Downloads
8
Maintainers
Readme
Nodetube - minimal youtube downloader
Thanks to Nick Ficano
- Pytube https://github.com/nficano/pytube
dependency
- axios
- qs
How to use
import { Youtube } from "nodetube";
const yt = new Youtube("https://youtube.com/watch?v=videoId"); //or new Youtube("vidoeId");
const link = await yt.stream(251); // itag
console.log(link); // https://r5---sn-3u-3fwl.googlevideo.com/videoplayback?
Youtube itag
FROM https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2
| itag Code | Container | Content | Resolution | Bitrate | Range | VR / 3D | | :-------- | --------: | ----------: | ---------: | ------: | ----: | ------: | | 5 | flv | audio/video | 240p | - | - | - | | 6 | flv | audio/video | 270p | - | - | - | | 17 | 3gp | audio/video | 144p | - | - | - | | 18 | mp4 | audio/video | 360p | - | - | - | | 22 | mp4 | audio/video | 720p | - | - | - | | 34 | flv | audio/video | 360p | - | - | - | | 35 | flv | audio/video | 480p | - | - | - | | 36 | 3gp | audio/video | 180p | - | - | - | | 37 | mp4 | audio/video | 1080p | - | - | - | | 38 | mp4 | audio/video | 3072p | - | - | - | | 43 | webm | audio/video | 360p | - | - | - | | 44 | webm | audio/video | 480p | - | - | - | | 45 | webm | audio/video | 720p | - | - | - | | 46 | webm | audio/video | 1080p | - | - | - | | 82 | mp4 | audio/video | 360p | - | - | 3D | | 83 | mp4 | audio/video | 480p | - | - | 3D | | 84 | mp4 | audio/video | 720p | - | - | 3D | | 85 | mp4 | audio/video | 1080p | - | - | 3D | | 92 | hls | audio/video | 240p | - | - | 3D | | 93 | hls | audio/video | 360p | - | - | 3D | | 94 | hls | audio/video | 480p | - | - | 3D | | 95 | hls | audio/video | 720p | - | - | 3D | | 96 | hls | audio/video | 1080p | - | - | - | | 100 | webm | audio/video | 360p | - | - | 3D | | 101 | webm | audio/video | 480p | - | - | 3D | | 102 | webm | audio/video | 720p | - | - | 3D | | 132 | hls | audio/video | 240p | - | - | | | 133 | mp4 | video | 240p | - | - | | | 134 | mp4 | video | 360p | - | - | | | 135 | mp4 | video | 480p | - | - | | | 136 | mp4 | video | 720p | - | - | | | 137 | mp4 | video | 1080p | - | - | | | 138 | mp4 | video | 2160p60 | - | - | | | 139 | m4a | audio | - | 48k | - | | | 140 | m4a | audio | - | 128k | - | | | 141 | m4a | audio | - | 256k | - | | | 151 | hls | audio/video | 72p | - | - | | | 160 | mp4 | video | 144p | - | - | | | 167 | webm | video | 360p | - | - | | | 168 | webm | video | 480p | - | - | | | 169 | webm | video | 1080p | - | - | | | 171 | webm | audio | - | 128k | - | | | 218 | webm | video | 480p | - | - | | | 219 | webm | video | 144p | - | - | | | 242 | webm | video | 240p | - | - | | | 243 | webm | video | 360p | - | - | | | 244 | webm | video | 480p | - | - | | | 245 | webm | video | 480p | - | - | | | 246 | webm | video | 480p | - | - | | | 247 | webm | video | 720p | - | - | | | 248 | webm | video | 1080p | - | - | | | 249 | webm | audio | - | 50k | - | | | 250 | webm | audio | - | 70k | - | | | 251 | webm | audio | - | 160k | - | | | 264 | mp4 | video | 1440p | - | - | | | 266 | mp4 | video | 2160p60 | - | - | | | 271 | webm | video | 1440p | - | - | | | 272 | webm | video | 4320p | - | - | | | 278 | webm | video | 144p | - | - | | | 298 | mp4 | video | 720p60 | - | - | | | 299 | mp4 | video | 1080p60 | - | - | | | 302 | webm | video | 720p60 | - | - | | | 303 | webm | video | 1080p60 | - | - | | | 308 | webm | video | 1440p60 | - | - | | | 313 | webm | video | 2160p | - | - | | | 315 | webm | video | 2160p60 | - | - | | | 330 | webm | video | 144p60 | - | hdr | | | 331 | webm | video | 240p60 | - | hdr | | | 332 | webm | video | 360p60 | - | hdr | | | 333 | webm | video | 480p60 | - | hdr | | | 334 | webm | video | 720p60 | - | hdr | | | 335 | webm | video | 1080p60 | - | hdr | | | 336 | webm | video | 1440p60 | - | hdr | | | 337 | webm | video | 2160p60 | - | hdr | |
CLI
> node cli.js videoID
https://r8-v/googlevideo.com/videoplayback