@vreden/youtube_scraper
v1.2.3
Published
A simple YouTube video downloader for audio and video formats with resolusi and quality.
Downloads
10,934
Maintainers
Readme
YOUTUBE CONVERTER
Akan diupdae setiap error, maka gunakan tag latest agar update terbarukan otomatis
Contact And Channel
channel informasi untuk segala system dibawah naungan "vreden"
Installation
You can install the package using npm:
npm install youtube_scraper
Usage
const { search, ytmp3, ytmp4 } = require('@vreden/youtube_scraper');
Quality Available
const audio = ["92", "128", "256", "320"]
const video = ["144", "360", "480", "720", "1080"]
Download Audio (MP3) 🎧
// url YouTube kamu
const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';
// quality download, pilih di Quality Available
const quality = "128"
/*
* atau kamu bisa langsung url
* saja untuk default quality (128)
* example: ytmp3(url)
*/
ytmp3(url, quality)
.then(result => {
if (result.status) {
console.log('Download Link:', result.download);
console.log('Metadata:', result.metadata);
} else {
console.error('Error:', result.result);
}
});
Download Video (MP4) 🗃️
// url YouTube kamu
const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';
// quality download, pilih di Quality Available
const quality = "360"
/*
* atau kamu bisa langsung url
* saja untuk default quality (360)
* example: ytmp4(url)
*/
ytmp4(url, quality)
.then(result => {
if (result.status) {
console.log('Download Link:', result.download);
console.log('Metadata:', result.metadata);
} else {
console.error('Error:', result.result);
}
});
Search Video 🍟
const query = 'your search term';
search(query)
.then(result => {
if (result.status) {
console.log('Search Results:', result.results);
} else {
console.error('Error:', result.result);
}
});