![]() ![]() Save and run the file with node index.js and you should see the file progress in your terminal and then have the file available in your file directory. Preparing DependenciesĪt the top of your file require these four packages: const fs = require('fs')Ĭonst YoutubeMp3Downloader = require('youtube-mp3-downloader')Ĭonst `) While it is doing this it triggers several events - we are going to use the progress event so we know how far through the download we are, and finished which indicates we can move on. Run npm init -y to create a package.json file and then install the following packages: npm install ffmpeg-static youtube-mp3-downloaderĬreate an index.js file, and open it in your code editor. How to Download the Transcript for a YouTube Video See One Do One Teach Forever 132 subscribers Subscribe 284 Share 14K views 2 years ago How to Download a Youtube video Transcript: If. Download Video and Convert to MP3 Under the hood, the youtube-mp3-downloader package will download the video and convert it with ffmpeg on our behalf. The one we will be using is ir-mWUYH_uo.Ĭreate a new directory and navigate to it with your terminal. Node.js installed on your machine - download it here.Ī YouTube Video ID which is part of the URL of a video.
0 Comments
Leave a Reply. |