@boboiboyturuuu/xgrovy-scrape
v1.0.6
Published
Scraper untuk konten dewasa dari situs xgrovy.
Downloads
30
Maintainers
Readme
@boboiboyturuuu/xgrovy-scrape
@boboiboyturuuu/xgrovy-scrape Scraper konten dewasa melalui site xgrovy lebih simpel dan mudah.
🚀 Instalasi
Instal pustaka ini menggunakan npm:
npm install @boboiboyturuuu/xgrovy-scrape
🛠 Fungsi
search(query, jumlah)
Mencari hasil berdasarkan query di xgroovy.com.
Parameter:
query
(string): Query pencarian.jumlah
(number, optional): Jumlah hasil maksimal yang ditampilkan (default: 10).
Contoh Penggunaan:
import { search } from '@boboiboyturuuu/xgrovy-scrape';
const query = 'example query'; // Ganti dengan query pencarian yang sesuai
async function testSearch() {
try {
const results = await search(query, 5); // Ambil 5 hasil pencarian
console.log('Hasil pencarian:', results);
} catch (error) {
console.error('Terjadi kesalahan saat melakukan pencarian:', error.message);
}
}
testSearch();
Contoh Respons:
[
{
"title": "Video Title 1",
"link": "https://xgroovy.com/video1",
"thumbnail": "https://xgroovy.com/thumbnail1.jpg",
"preview": "https://xgroovy.com/preview1.jpg",
"duration": "10:00",
"views": "1,000",
"rating": "4.5",
"author": "Author 1"
},
{
"title": "Video Title 2",
"link": "https://xgroovy.com/video2",
"thumbnail": "https://xgroovy.com/thumbnail2.jpg",
"preview": "https://xgroovy.com/preview2.jpg",
"duration": "8:00",
"views": "500",
"rating": "4.0",
"author": "Author 2"
}
]
best()
Video Best
Contoh Penggunaan:
import { best } from '@boboiboyturuuu/xgrovy-scrape';
async function testBest() {
try {
const results = await best();
console.log('Hasil terbaik:', results);
} catch (error) {
console.error('Terjadi kesalahan saat mengambil hasil terbaik:', error.message);
}
}
testBest();
Contoh Respons:
[
{
"title": "judul",
"link": "url video",
"thumbnail": "thumbnail jpg",
"preview": "preview mp4",
"duration": "durasi",
"views": "penonton",
"rating": "rating",
"author": "nama"
}
]
download(url)
Mengunduh dan mendapatkan metadata video dari URL xgroovy.com.
Parameter:
url
(string): URL video yang akan diunduh.
Contoh Penggunaan:
import { download } from '@boboiboyturuuu/xgrovy-scrape';
const url = 'https://xgroovy.com/videos/53295/uncensored-boku-dake-no-hentai-kanojo-motto-the-animation/';
async function testDownload() {
try {
const result = await download(url);
console.log('Metadata video:', result);
} catch (error) {
console.error('Terjadi kesalahan saat mengambil video:', error.message);
}
}
testDownload();
Contoh Respons:
[
{
"thumbnailUrl": "thumbnail jpg",
"title": "judul",
"description": "deskripsi",
"duration": "durasi",
"uploadDate": "rilis",
"likeCount": like,
"authorName": "nama",
"authorUrl": "url",
"videoUrls": {
"1080": "https://xgroovy.com/video/1080p.mp4",
"720": "https://xgroovy.com/video/720p.mp4",
"480": "https://xgroovy.com/video/480p.mp4",
"240": "https://xgroovy.com/video/240p.mp4"
}
}
]
📜 Lisensi
Pustaka ini dirilis di bawah MIT License. Nikmati kebebasan untuk menggunakan dan berkontribusi!