@zenaveline/scraper 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -61
- package/index.mjs +15 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>✨
|
|
3
|
-
<p><strong>Modul All-in-One Scraper Keren, Cepat, dan Mudah Digunakan!</strong></p>
|
|
2
|
+
<h1>✨ <code>@zenaveline/scraper</code> ✨</h1>
|
|
3
|
+
<p><strong>Modul All-in-One Scraper Keren, Cepat, dan Sangat Mudah Digunakan!</strong></p>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@zenaveline/scraper"><img src="https://img.shields.io/npm/v/@zenaveline/scraper?style=for-the-badge&color=success" alt="NPM Version" /></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@zenaveline/scraper"><img src="https://img.shields.io/npm/dt/@zenaveline/scraper?style=for-the-badge&color=blue" alt="NPM Downloads" /></a>
|
|
8
|
+
<a href="https://opensource.org/licenses/ISC"><img src="https://img.shields.io/badge/License-ISC-blue.svg?style=for-the-badge" alt="License: ISC" /></a>
|
|
9
|
+
</p>
|
|
7
10
|
|
|
8
11
|
<p>
|
|
9
|
-
|
|
12
|
+
Kumpulan scraper andalan untuk bot WhatsApp, Telegram, maupun project Node.js kamu. Mendukung penuh format <b>CommonJS</b> dan <b>ESM</b>, dilengkapi berbagai fitur mulai dari Downloader Sosial Media hingga Tools AI!
|
|
10
13
|
</p>
|
|
11
14
|
</div>
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
<hr>
|
|
14
17
|
|
|
15
|
-
## 🚀
|
|
18
|
+
## 🚀 Fitur Unggulan
|
|
19
|
+
- **⚡ Super Ringan & Cepat:** Dibuat menggunakan library andalan.
|
|
20
|
+
- **📦 Support Dual Module:** Bisa pakai `import` (ESM) atau `require` (CommonJS).
|
|
21
|
+
- **💡 Developer Friendly:** Sintaks yang sederhana dan to-the-point menggunakan Promise (Async/Await).
|
|
22
|
+
- **🌐 Beragam Layanan:** Mulai dari Instagram, Threads, Twitter (X), Pinterest, hingga Apple Music & AI dan lain lain.
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## 📦 Instalasi
|
|
18
25
|
|
|
19
26
|
```bash
|
|
20
27
|
# Menggunakan NPM
|
|
21
28
|
npm install @zenaveline/scraper
|
|
22
29
|
|
|
23
|
-
#
|
|
30
|
+
# Atau menggunakan Yarn
|
|
24
31
|
yarn add @zenaveline/scraper
|
|
25
32
|
```
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
## 📖 Quick Start
|
|
28
35
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Berikut adalah contoh cara memanggil modul ini di dalam proyek kamu. Kami menyediakan 1 contoh untuk **ESM** dan 1 contoh untuk **CommonJS**.
|
|
36
|
+
Cara panggilnya sangat praktis! Gunakan _destructuring_ untuk mengimpor fungsi yang spesifik kamu butuhkan.
|
|
32
37
|
|
|
33
38
|
### 🌟 ESM (ECMAScript Modules)
|
|
34
|
-
|
|
39
|
+
Untuk project berformat module (atau menggunakan TypeScript):
|
|
35
40
|
|
|
36
41
|
```javascript
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Contoh memanggil scraper Threads Downloader
|
|
42
|
-
const data = await scraper.threadsdownload('https://threads.com/@username/post/ID');
|
|
43
|
-
console.log(data);
|
|
44
|
-
} catch (error) {
|
|
45
|
-
console.error(error);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
runTest();
|
|
42
|
+
import { igdl } from '@zenaveline/scraper';
|
|
43
|
+
|
|
44
|
+
const data = await igdl('https://www.instagram.com/p/url-postingan');
|
|
45
|
+
console.log(data); // JSON
|
|
50
46
|
```
|
|
51
47
|
|
|
52
48
|
### 💻 CommonJS (CJS)
|
|
53
|
-
|
|
49
|
+
Untuk project standar Node.js (seperti bot WhatsApp pada umumnya):
|
|
54
50
|
|
|
55
51
|
```javascript
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const data = await scraper.igstalk('prabowo');
|
|
62
|
-
console.log(data);
|
|
63
|
-
} catch (error) {
|
|
64
|
-
console.error(error);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
runTest();
|
|
52
|
+
const { igdl } = require('@zenaveline/scraper');
|
|
53
|
+
|
|
54
|
+
// Pastikan dijalankan di dalam context fungsi async
|
|
55
|
+
const data = await igdl('https://www.instagram.com/p/url-postingan');
|
|
56
|
+
console.log(data); // JSON
|
|
69
57
|
```
|
|
70
58
|
|
|
71
59
|
---
|
|
72
60
|
|
|
73
|
-
## 🛠️ Daftar Scraper
|
|
61
|
+
## 🛠️ Daftar Scraper & Tools Terlengkap
|
|
74
62
|
|
|
75
|
-
|
|
63
|
+
Panggil nama fungsinya sesuai daftar di bawah ini untuk menikmati semua fiturnya.
|
|
76
64
|
|
|
77
|
-
|
|
65
|
+
### 📥 Downloader Sosial Media
|
|
66
|
+
| Fungsi | Deskripsi Singkat |
|
|
78
67
|
| :--- | :--- |
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
68
|
+
| `igdl(url)` | Unduh video Reels, foto, maupun Carousel dari Instagram. |
|
|
69
|
+
| `igstalk(username)` | Stalk detail profil seseorang di Instagram. |
|
|
70
|
+
| `threadsdownload(url)` | Ambil media foto/video dari postingan Threads secara instan. |
|
|
71
|
+
| `twetterdownload(url)` | Unduh postingan video/gambar dari platform X (Twitter). |
|
|
72
|
+
| `pinterestdownload(url)`| Ekstrak media gambar dan video dengan kualitas jernih dari Pinterest. |
|
|
73
|
+
|
|
74
|
+
### 🎵 Musik & Audio
|
|
75
|
+
| Fungsi | Deskripsi Singkat |
|
|
76
|
+
| :--- | :--- |
|
|
77
|
+
| `applemusicdl(url)` | Unduh audio lagu favoritmu langsung dari Apple Music (hingga 320kbps). |
|
|
78
|
+
| `geniussearch(query)` | Temukan lagu dan metadata sang artis lewat API Genius. |
|
|
79
|
+
| `geniusdetail(id)` | Dapatkan detail lagu beserta lirik utuhnya via Genius ID. |
|
|
91
80
|
|
|
92
|
-
|
|
81
|
+
### 🤖 AI & Image Tools
|
|
82
|
+
| Fungsi | Deskripsi Singkat |
|
|
83
|
+
| :--- | :--- |
|
|
84
|
+
| `novaai(text)` | Chatbot interaktif menggunakan Nova AI untuk menjawab pertanyaan apa saja. |
|
|
85
|
+
| `sharpify(img, model)` | Tools manipulasi gambar keren: `enhance`, `upscale` (Bikin HD), atau `removebg`. |
|
|
86
|
+
| `pixaremovebg(img)` | Algoritma canggih dari Pixacut API untuk menghapus background dengan hasil super rapi. |
|
|
93
87
|
|
|
94
|
-
|
|
88
|
+
### ℹ️ Utility
|
|
89
|
+
| Fungsi | Deskripsi Singkat |
|
|
90
|
+
| :--- | :--- |
|
|
91
|
+
| `docs()` | Gunakan fungsi ini untuk melihat *list* lengkap seluruh fungsi scraper yang didukung secara terprogram. |
|
|
92
|
+
|
|
93
|
+
> **Catatan Penting:**
|
|
94
|
+
> Untuk fungsi berbasis gambar lokal (seperti `sharpify` dan `pixaremovebg`), *argumen* `img` diisi dengan _path_ / letak lokasi *file* gambarmu (contoh: `'./gambar.jpg'`).
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
- Pada scraper yang meminta input *local file path* seperti `sharpify` dan `pixaremovebg`, parameter yang dikirimkan adalah alamat file gambar di komputermu (contoh: `'./input.jpg'`).
|
|
96
|
+
---
|
|
98
97
|
|
|
99
98
|
<div align="center">
|
|
100
|
-
<p>
|
|
99
|
+
<p>Dikembangkan dengan ❤️ oleh <b>ZenzzXD</b></p>
|
|
100
|
+
<p>Jangan lupa follow channel ZenzXD untuk informasi selanjutnya!</p>
|
|
101
101
|
</div>
|
package/index.mjs
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
1
|
import scraper from './index.js';
|
|
2
|
+
|
|
3
|
+
export const applemusicdl = scraper.applemusicdl;
|
|
4
|
+
export const geniusdetail = scraper.geniusdetail;
|
|
5
|
+
export const geniussearch = scraper.geniussearch;
|
|
6
|
+
export const igdl = scraper.igdl;
|
|
7
|
+
export const igstalk = scraper.igstalk;
|
|
8
|
+
export const novaai = scraper.novaai;
|
|
9
|
+
export const pinterestdownload = scraper.pinterestdownload;
|
|
10
|
+
export const pixaremovebg = scraper.pixaremovebg;
|
|
11
|
+
export const sharpify = scraper.sharpify;
|
|
12
|
+
export const threadsdownload = scraper.threadsdownload;
|
|
13
|
+
export const twetterdownload = scraper.twetterdownload;
|
|
14
|
+
export const docs = scraper.docs;
|
|
15
|
+
|
|
16
|
+
export default scraper;
|