Giter Club home page Giter Club logo

ytdownload's Introduction

Download YouTube Videos Easily

YTDownload allows you to download youtube videos easily. Now with CLI support!

Usage [CLI]

$ ytdownload <video_url>

example:

$ ytdownload https://www.youtube.com/watch?v=dQw4w9WgXcQ

Usage [Code]

/* ES6 */
import { download } from "ytdownload";

/* CommonJS*/
const { download } = require("ytdownload");

download("video_url");

// example
download("https://www.youtube.com/watch?v=dQw4w9WgXcQ").then((VideoPath) => {
	console.log(VideoPath); // => ./videos/Rick Astley - Never Gonna Give You Up (Video).mp4
});

Contact Me For More Help

ytdownload's People

Contributors

barbarbar338 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ytdownload's Issues

Bad Download when video title contains colon : on Windows

On Windows, via the CLI, I tried downloading the video titled TwoSet Violin & SSO: Mendelssohn Violin Concerto as follows:

ytdownload https://www.youtube.com/watch?v=zlRRdGnzA00

this started and completed the download successfully:

[YTDownload] Downloading 100.000%
╔══════════════════════════════════════════════════╤═══════════════════╤═════════╗
║ YTDownload                                       │ Status            │ Percent ║
╟──────────────────────────────────────────────────┼───────────────────┼─────────╢
║ TwoSet Violin & SSO: Mendelssohn Violin Concerto │ Download Finished │ 100%    ║
╚══════════════════════════════════════════════════╧═══════════════════╧═════════╝

Downloaded in: 24.000s
Downloaded to ./videos/TwoSet Violin & SSO: Mendelssohn Violin Concerto.mp4

But when I looked in the videos directory, there was a 0 byte file in there titled TwoSet Violin & SSO

So I'm guessing there's an issue when the video title contains colons, which are not allowed (besides for drive letters) on Windows.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.