Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More ā†’
Socket
Sign inDemoInstall
Socket

neastooapi

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neastooapi - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

plugins/Tl-ytsearch.js

7

index.js

@@ -0,1 +1,2 @@

// Import fitur lainnya
import { gemini } from './plugins/Ai-gemini.js';

@@ -11,3 +12,2 @@ import { chatGPT } from './plugins/Ai-ChatGPT.js';

import { googleDriveDownloader } from './plugins/DL-gdrive.js';
import { megaDl } from './plugins/DL-mega.js';
import { nhentaiSearch } from './plugins/AN-nhentai.js';

@@ -18,2 +18,3 @@ import { sfwAnime } from './plugins/AN-sfwnime.js';

import { PinterestSearch } from './plugins/Tl-pin.js';
import { ytSearch } from './plugins/Tl-ytsearch.js';

@@ -32,3 +33,2 @@ // Ekspor semua fitur di sini

googleDriveDownloader,
megaDl,
nhentaiSearch,

@@ -38,3 +38,4 @@ sfwAnime,

gimage,
PinterestSearch
PinterestSearch,
ytSearch
};
{
"name": "neastooapi",
"version": "0.1.6",
"version": "0.1.7",
"description": "Scraper Module NSTID",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,7 +9,7 @@ import fetch from 'node-fetch';

if (data.success) {
if (data.downloadUrl) {
return {
downloadLink: data.downloadLink,
fileName: data.fileName || "Unknown file name",
fileSize: data.fileSize || "Unknown file size",
downloadLink: data.downloadUrl, // Ganti 'downloadLink' dengan 'downloadUrl' dari respons
fileName: data.fileName || "Unknown file name", // Gunakan 'fileName' dari respons atau placeholder
fileSize: data.fileSize || "Unknown file size", // Gunakan 'fileSize' dari respons atau placeholder
};

@@ -16,0 +16,0 @@ } else {

@@ -9,7 +9,11 @@ import fetch from 'node-fetch';

if (data.success) {
if (data.success && Array.isArray(data.data) && data.data.length > 0) {
// Ambil media pertama dari array
const media = data.data[0];
return {
mediaUrl: data.mediaUrl,
type: data.type || "Unknown type",
caption: data.caption || "No caption available",
mediaUrl: media.url,
thumbnail: media.thumbnail,
type: "image", // Tentukan jenis konten; update sesuai kebutuhan API jika ada info lebih detail
caption: "No caption available", // Placeholder jika tidak ada caption dalam API
};

@@ -23,7 +27,8 @@ } else {

mediaUrl: null,
thumbnail: null,
type: null,
caption: null,
error: 'Error dalam mendapatkan data dari API Instagram downloader'
error: 'Error dalam mendapatkan data dari API Instagram downloader',
};
}
}

@@ -7,9 +7,22 @@ import fetch from 'node-fetch';

const response = await fetch(apiUrl);
const data = await response.json();
const result = await response.json();
if (data.success) {
if (result.code === 0 && result.msg === 'success') {
const data = result.data;
return {
videoUrl: data.videoUrl,
description: data.description || "No description available.",
author: data.author || "Unknown"
videoUrl: data.play || null,
description: data.title || "No description available.",
author: {
uniqueId: data.author?.unique_id || "Unknown",
nickname: data.author?.nickname || "Unknown",
avatar: data.author?.avatar || null
},
music: {
title: data.music_info?.title || "No title",
url: data.music_info?.play || null,
author: data.music_info?.author || "Unknown"
},
duration: data.duration || null,
cover: data.cover || null
};

@@ -25,2 +38,5 @@ } else {

author: null,
music: null,
duration: null,
cover: null,
error: 'Error dalam mendapatkan data dari API TikTok downloader'

@@ -27,0 +43,0 @@ };

@@ -9,7 +9,10 @@ import fetch from 'node-fetch';

if (data.success) {
if (data.status && Array.isArray(data.media) && data.media.length > 0) {
// Ambil media pertama dari array
const mediaUrl = data.media[0];
return {
mediaUrl: data.mediaUrl,
type: data.type || "Unknown type",
caption: data.caption || "No caption available",
mediaUrl: mediaUrl,
type: data.type || "Unknown type", // Gunakan type dari API atau default ke "Unknown type"
caption: "No caption available", // Placeholder untuk caption jika tidak ada
};

@@ -16,0 +19,0 @@ } else {

@@ -16,3 +16,12 @@ [![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#table-of-contents)

---------
# `šŸ“ Changelogs`
```js
// Fix Downloader
// Stabile Version
+ Add Yt Search
- Mega Downloader
```
---------
# `šŸ“ How to use ???`

@@ -136,14 +145,2 @@

7. Mega Downloader
```js
import { megaDl } from 'neastooapi';
(async () => {
const megaUrl = "https://mega.nz/file/example";
const response = await megaDl(megaUrl);
console.log("Response from Mega Downloader:", response);
})();
```
---------

@@ -215,2 +212,17 @@

3. Youtube Search
```js
import { ytSearch } from 'neastooapi';
(async () => {
try {
const query = "YUSUP909";
const response = await ytSearch(query);
console.log(response);
} catch (error) {
console.error('Error:', error.message);
}
})();
```
---------

@@ -217,0 +229,0 @@

@@ -1,11 +0,8 @@

import { PinterestSearch } from './index.js';
import { twitterDownloader } from './index.js';
(async () => {
try {
const query = "anime";
const response = await PinterestSearch(query);
console.log(response);
} catch (error) {
console.error('Error:', error.message);
}
const twitterUrl = "https://x.com/Luna_Stellaris/status/1858682555324621155?t=88S6IWLOs3-oNcbd6DunEQ&s=19";
const response = await twitterDownloader(twitterUrl);
console.log("Response from Twitter Downloader:", response);
})();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc