Skip to content

Node.js-based YouTube video downloader tool using ytdl-core and fs, enabling users to download videos in various qualities. Follow intuitive prompts to specify video URL and output filename effortlessly

Notifications You must be signed in to change notification settings

WTHIJ/YoutubeDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Steps to Use YouTube Video Downloader

  1. Install Node.js:

    • Visit the official Node.js website at nodejs.org
    • Download and install the appropriate version for your operating system.
  2. Create a new directory for your project:

    • Open your preferred terminal or command prompt.
    • Navigate to the desired location where you want to create the project directory.
    • Run the following command to create a new directory:
      mkdir youtube-downloader
  3. Initialize a new Node.js project:

    • Change into the project directory:
      cd youtube-downloader
    • Run the following command to initialize a new Node.js project:
      npm init -y
  4. Install required dependencies:

    • Run the following command to install the required packages (ytdl-core and fs):
      npm install ytdl-core fs
  5. Create a new JavaScript file:

    • Create a new file called script.js in the project directory.
  6. Copy the code into the script.js file:

    • Copy the JavaScript code provided earlier into the script.js file.
  7. Run the program:

    • Save the file.
    • Open your terminal or command prompt.
    • Make sure you're in the project directory.
    • Run the following command to execute the program:
      node script.js
  8. Follow the prompts:

    • Enter the YouTube video URL when prompted.
    • Enter the desired filename (without extension) for the downloaded video.
  9. Wait for the download to complete:

    • The program will download the YouTube video in the specified quality.
    • Once the download is finished, it will display a success message.

Congratulations! You have successfully used the YouTube Video Downloader program. The downloaded video will be saved in the same directory with the specified filename and the ".mp4" extension.

Note: Make sure you have the necessary permissions to write files in the selected directory.

Feel free to let me know what you think about my work !

About

Node.js-based YouTube video downloader tool using ytdl-core and fs, enabling users to download videos in various qualities. Follow intuitive prompts to specify video URL and output filename effortlessly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published