neastooapi
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -16,2 +16,3 @@ import { gemini } from './plugins/Ai-gemini.js'; | ||
import { gimage } from './plugins/Tl-gimage.js'; | ||
import { PinterestSearch } from './plugins/Tl-pin.js'; | ||
@@ -34,3 +35,4 @@ // Ekspor semua fitur di sini | ||
charAnimeInfo, | ||
gimage | ||
gimage, | ||
PinterestSearch | ||
}; |
{ | ||
"name": "neastooapi", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Scraper Module NSTID", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,8 +10,12 @@ import fetch from 'node-fetch'; | ||
if (data.success) { | ||
const metadata = data.metadata || {}; | ||
return { | ||
audioUrl: data.audioUrl, | ||
title: data.title || "No title available", | ||
artist: data.artist || "Unknown artist", | ||
album: data.album || "Unknown album", | ||
duration: data.duration || "Unknown duration", | ||
audioUrl: data.link, | ||
title: metadata.title || "No title available", | ||
artist: metadata.artists || "Unknown artist", | ||
album: metadata.album || "Unknown album", | ||
cover: metadata.cover || null, | ||
duration: "Unknown duration", // Durasi tidak disertakan dalam respons JSON | ||
releaseDate: metadata.releaseDate || "Unknown release date", | ||
}; | ||
@@ -28,3 +32,5 @@ } else { | ||
album: null, | ||
cover: null, | ||
duration: null, | ||
releaseDate: null, | ||
error: 'Error dalam mendapatkan data dari API Spotify downloader' | ||
@@ -31,0 +37,0 @@ }; |
@@ -200,4 +200,13 @@ [![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#table-of-contents) | ||
```js | ||
import { PinterestSearch } from 'neastooapi'; | ||
WIP - Work In Progres | ||
(async () => { | ||
try { | ||
const query = "anime"; | ||
const response = await PinterestSearch(query); | ||
console.log(response); | ||
} catch (error) { | ||
console.error('Error:', error.message); | ||
} | ||
})(); | ||
``` | ||
@@ -204,0 +213,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { gimage } from './index.js'; | ||
import { PinterestSearch } from './index.js'; | ||
@@ -6,3 +6,3 @@ (async () => { | ||
const query = "anime"; | ||
const response = await gimage(query); | ||
const response = await PinterestSearch(query); | ||
console.log(response); | ||
@@ -9,0 +9,0 @@ } catch (error) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23952
22
449
228
16