• Stars
    star
    186
  • Rank 206,530 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple CLI and library for downloading high quality YouTube videos!

pully

Build Status Code Coverage Dependencies DevDependencies npm Monthly Downloads Total Downloads

A simple CLI for downloading high quality Youtube videos!

This tool allows the downloading of Youtube videos of 1080p and higher qualities. The video and audio is separate, so this combines them after downloading both.

ATTENTION

While this tool makes it easy to download content from Youtube, I do not endorse the theft of content created by hardworking citizens of the Internet. If you use Youtube as a primary source of entertainment, then please remember to turn off ad-block, buy their merchandise, or donate to the content creators you love to watch. And if you can't do that then simply like, comment, and subscribe to help them get more people enjoying their content.

CLI

Installation

Note: Pully requires ffmpeg to be installed. fluent-ffmpeg has great instructions on how to set this up. Pully now automatically downloads the required version of ffmpeg thanks to kribblo/node-ffmpeg-installer!

npm i -g pully

Usage

pully download <url> [-p <preset>="hd"] [-d <outputDir>="."] [-t <filenameTemplate>="${channelName}/${videoTitle}"] [--silent]

pully set dir "~/Jim/videos/YouTube"

pully get dir # Prints ~/Jim/videos/YouTube

pully dl <url> # Downloads specified video to ~/Jim/videos/YouTube/<author>/<title>.mp4

Downloads a specified video based on a preset, defaulting to HD (see below). By default the file is named after the title and placed in a folder named after the channel.

Presets

Presets are used in the CLI version to simplify getting the video you want. Presets are available in the module, and can be overridden/extended!

  • hd This will download the best video up to 1080p60. (default)
  • 2k This will download the best video up to 1440p60.
  • 4k This will download the best video up to 2160p60.
  • max This will download the best video, no limits on resolution or framerate.
  • hfr This will download the video with the highest framerate.
  • mp3 This will only download the audio only, and convert it to mp3.

Node Module

Installation

npm i pully

Usage

import { Pully, Presets } from 'pully';

const pully = new Pully();

const video = await pully.query('<some-neato-video-url>');
console.log(`${video.videoTitle} by ${video.channelName} has ${video.views} views!`);

const options = {
  url: '<some-really-high-def-video-url>',
  preset: Presets.FourK,
  progress: (data) => console.log(data.percent + '%') // Progress reporter callback...
};

const { path, format, duration } = await pully.download(options);
console.log(path);     // Path to the downloaded file.
console.log(format);   // Object containing all audio/video/meta data.
console.log(duration); // Number of milliseconds the download took.

Contribute

  1. Fork it
  2. npm i
  3. npm run watch
  4. Make changes and write tests.
  5. Send pull request! ๐Ÿ˜Ž

License

MIT

More Repositories

1

node-google-api

Simple but dynamic wrapper for RESTful Google APIs.
JavaScript
14
star
2

WorkHive

Lightweight, Browser-based, Grid Computing platform for Node.js
JavaScript
12
star
3

blazor-electron-demo

Demo code from "Building Electron Apps with Blazor"
HTML
5
star
4

scany

Easily grab recent video data from user, channel, and playlist URLs!
TypeScript
5
star
5

flexel

Create specialized data structures from level, just like sublevel.
TypeScript
4
star
6

pully-svc

Youtube channel and playlist auto-downloader service!
TypeScript
3
star
7

jk-overlay

Desktop app for simple & harmless pranks.
JavaScript
3
star
8

desktop-with-blazor-2019

Slides, demos and resources for the "Building Desktop Apps with Blazor" talk.
C#
3
star
9

skedgy

Periodically check for and queue work to be done!
TypeScript
2
star
10

world-gen

๐ŸŒ Generate WebGL planets powered by three.js, Next.js, and TypeScript.
TypeScript
2
star
11

playbook

A simple tool for running multiple projects at once.
TypeScript
2
star
12

warlords-atlantis

Remix of Atari 2600 game "Warlords" for the MiniLD 41.
JavaScript
2
star
13

dash

A web-based dashboard that turns any device into a macro-enabled input for your local network.
TypeScript
2
star
14

Overcaster

Desktop application to build and broadcast HTML5 content!
HTML
1
star
15

storm

A super simple genetic algorithm library for Node.
TypeScript
1
star
16

stuffd

Like a turkey. ๐Ÿฆƒ
TypeScript
1
star
17

clip-commander

A cross-network clipboard utility.
JavaScript
1
star
18

simple-life

Simple artificial life simulator.
JavaScript
1
star
19

event-swarm

Cross-machine events made simple.
TypeScript
1
star
20

bio-sim

An Artificial Life simulator, with procedural terrain, weather, organisms, and other fun stuff.
TypeScript
1
star
21

super-conductor-desktop

Desktop interface for super-conductor that runs in your tray.
Less
1
star
22

NodeInterProc-Example

http://stackoverflow.com/questions/28952348/send-message-from-node-js-server-to-client-via-function-call/28953862#28953862
JavaScript
1
star
23

generator-jb-module

A simple yeoman generator for creating reusable node modules like a pro.
JavaScript
1
star