1.4.0 • Published 3 years ago
youtube-scrapper v1.4.0
youtube-scrapper
Table Of Contents
Links
Installing
Simply use npm i youtube-scrapper
.
Example
const scrapper = require("youtube-scrapper")
const { createWriteStream } = require("fs")
async function main() {
// Getting videos through query.
const result = await scrapper.search("best hits 2010")
console.log(result.videos.map(vid => vid.details.title)) // Array of videos mapped by name.
// Downloading first result and piping to a file.
// We have to get the full song info first.
const video = await scrapper.getVideoInfo(result.videos[0].id)
// Write to file.
scrapper
.downloadFromVideo(video)
.pipe(createWriteStream("./song.ogg"))
}
main()
1.4.0
3 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1-s
4 years ago
1.1.0
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.2
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0-alpha
4 years ago
1.0.0
5 years ago