Skip to content

Vincy-Cheng/ytdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube video Converter

This repo is an example on how to use ytdl to convert YouTube video into audio file.

It included javascript and python version.

JavaScript

It mainly used ytdl-core and ffmepg package to convert the video to audio. It is recommended to install NodeJS.

Locally development

  1. cd javascript
  2. Install packages with npm i
  3. Compile the code node convert.js

TypeScript

Same logic as JavaScript

Locally development

  1. cd typescript
  2. Install packages with npm i
  3. Compile the code npm run start

Python

It is suggested to use virtual environment to compile the code. Python virtual environment can refer to here

Create the virtual environment

py -m venv python

or

python -m venv python

Activate the virtual

Mac

source <venv>/bin/activate

Windows

cd python

Scripts\activate

About

YouTube video to audio converter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published