almtools 1.0.1
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 +24 -0
- package/index.js +9 -0
- package/lib/tools.js +1 -0
- package/package.json +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Media Social Downloader
|
|
2
|
+
|
|
3
|
+
### Installation
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm install almtools
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Tiktok Downloader
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
const { tiktok } = require("almtools")
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Spotify Downloader
|
|
16
|
+
```
|
|
17
|
+
const { spotify } = require("almtools")
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Instagram Downloader
|
|
21
|
+
```
|
|
22
|
+
const { instagram } = require("almtools")
|
|
23
|
+
```
|
|
24
|
+
## Dah itu aja :v
|
package/index.js
ADDED
package/lib/tools.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x300827,_0x46f718){const _0xbbaf90=_0x1260,_0x463d6d=_0x300827();while(!![]){try{const _0x2582e8=-parseInt(_0xbbaf90(0x96))/0x1+parseInt(_0xbbaf90(0x98))/0x2+parseInt(_0xbbaf90(0x9d))/0x3+parseInt(_0xbbaf90(0xae))/0x4*(parseInt(_0xbbaf90(0xb3))/0x5)+-parseInt(_0xbbaf90(0xc3))/0x6*(parseInt(_0xbbaf90(0xa4))/0x7)+-parseInt(_0xbbaf90(0xa0))/0x8+parseInt(_0xbbaf90(0xa6))/0x9*(parseInt(_0xbbaf90(0xa2))/0xa);if(_0x2582e8===_0x46f718)break;else _0x463d6d['push'](_0x463d6d['shift']());}catch(_0x260343){_0x463d6d['push'](_0x463d6d['shift']());}}}(_0xf968,0x6b6cd));function _0x51cd(_0x3c0f03,_0xb816e9){const _0x5de11b=_0xbe15();return _0x51cd=function(_0x383207,_0x7062d9){_0x383207=_0x383207-0xfc;let _0x41dc8f=_0x5de11b[_0x383207];return _0x41dc8f;},_0x51cd(_0x3c0f03,_0xb816e9);}(function(_0x34bc61,_0xfe3740){const _0x358498=_0x1260,_0x3b141c=_0x51cd,_0x424cef=_0x34bc61();while(!![]){try{const _0x604d48=parseInt(_0x3b141c(0x12a))/0x1+-parseInt(_0x3b141c(0x10b))/0x2+parseInt(_0x3b141c(0x130))/0x3*(-parseInt(_0x3b141c(0x136))/0x4)+parseInt(_0x3b141c(0x101))/0x5*(-parseInt(_0x3b141c(0x104))/0x6)+-parseInt(_0x3b141c(0x117))/0x7+parseInt(_0x3b141c(0x121))/0x8+parseInt(_0x3b141c(0x11c))/0x9*(parseInt(_0x3b141c(0x109))/0xa);if(_0x604d48===_0xfe3740)break;else _0x424cef['push'](_0x424cef[_0x358498(0xc0)]());}catch(_0x175f05){_0x424cef['push'](_0x424cef[_0x358498(0xc0)]());}}}(_0xbe15,0x9e5a3));const _0x39c8c8=_0x44a8;(function(_0x2b3e01,_0x6238a7){const _0x421348=_0x51cd,_0x358624=_0x44a8,_0x3b8016=_0x2b3e01();while(!![]){try{const _0xfedec4=parseInt(_0x358624(0x1b5))/0x1*(-parseInt(_0x358624(0x1be))/0x2)+-parseInt(_0x358624(0x1a2))/0x3*(parseInt(_0x358624(0x1c5))/0x4)+parseInt(_0x358624(0x18b))/0x5+parseInt(_0x358624(0x191))/0x6*(-parseInt(_0x358624(0x1c0))/0x7)+-parseInt(_0x358624(0x18f))/0x8+parseInt(_0x358624(0x1b9))/0x9+parseInt(_0x358624(0x197))/0xa;if(_0xfedec4===_0x6238a7)break;else _0x3b8016[_0x421348(0x131)](_0x3b8016[_0x421348(0x123)]());}catch(_0x21d1da){_0x3b8016[_0x421348(0x131)](_0x3b8016[_0x421348(0x123)]());}}}(_0x3318,0x1af52));const cheerio=require(_0x39c8c8(0x196)),axios=require(_0x39c8c8(0x1bb));function tiktok(_0x3c45d6){return new Promise(async(_0x4d796d,_0x1f92e4)=>{const _0x2548f3=_0x1260,_0x30a738=_0x51cd,_0x4358a1=_0x44a8;try{const _0x32dd5b=new URLSearchParams();_0x32dd5b[_0x4358a1(0x1ae)](_0x4358a1(0x195),_0x3c45d6),_0x32dd5b[_0x4358a1(0x1ae)]('hd','1');const _0x3e27de=await axios({'method':_0x4358a1(0x1b2),'url':_0x4358a1(0x199),'headers':{'Content-Type':_0x30a738(0x118),'Cookie':_0x4358a1(0x1aa),'User-Agent':_0x4358a1(0x1b6)},'data':_0x32dd5b}),_0x209abf=await axios[_0x4358a1(0x19d)](_0x4358a1(0x18c)+_0x3c45d6+_0x30a738(0x10d)),_0x477a97=cheerio[_0x4358a1(0x1a9)](_0x209abf[_0x4358a1(0x1b1)]);let _0x353d77=[],_0x2f7310=[];_0x477a97(_0x4358a1(0x1a8))[_0x4358a1(0x1c4)]((_0x3ed42f,_0x24ff17)=>{const _0x2072bd=_0x4358a1;_0x353d77[_0x2072bd(0x1b8)](_0x477a97(_0x24ff17)[_0x2072bd(0x1ac)](_0x2072bd(0x1ba)));}),_0x2f7310[_0x4358a1(0x1b8)]({'img':_0x353d77});let _0x2d9a76=_0x353d77[_0x4358a1(0x1a3)]((_0x1e3a89,_0x58df49)=>{return _0x1e3a89;});const _0x2355d3=_0x3e27de[_0x2548f3(0xcd)][_0x4358a1(0x1b1)];let _0x5c036f;_0x2d9a76[_0x30a738(0x107)]===0x0?_0x5c036f={'creator':_0x4358a1(0x1b7),'result':{'title':_0x2355d3[_0x30a738(0x116)],'mediatype':_0x4358a1(0x1ad),'media':_0x2355d3[_0x4358a1(0x18e)],'audio':_0x2355d3[_0x4358a1(0x1bf)]}}:_0x5c036f={'creator':_0x4358a1(0x1b7),'result':{'title':_0x2355d3[_0x4358a1(0x18a)],'mediatype':_0x4358a1(0x1b4),'media':_0x2d9a76,'audio':_0x2355d3[_0x30a738(0x124)]}},_0x4d796d(_0x5c036f);}catch(_0x2f3d4a){_0x1f92e4({'creator':_0x30a738(0x126),'result':_0x4358a1(0x1a0)});}});}function _0x44a8(_0x48282b,_0x512d7a){const _0x51e672=_0x3318();return _0x44a8=function(_0x54b094,_0x2138d5){_0x54b094=_0x54b094-0x18a;let _0x13e017=_0x51e672[_0x54b094];return _0x13e017;},_0x44a8(_0x48282b,_0x512d7a);}function spotify(_0x2b890f){return new Promise(async(_0x27d5b2,_0x5b1752)=>{const _0x4ca266=_0x1260,_0x510107=_0x51cd,_0x5da020=_0x44a8;try{const _0x4645c9=await axios[_0x5da020(0x19d)](_0x510107(0x132)+encodeURIComponent(_0x2b890f),{'headers':{'accept':_0x5da020(0x1c3),'accept-language':_0x5da020(0x1b0),'sec-ch-ua':_0x5da020(0x190),'sec-ch-ua-mobile':'?1','sec-ch-ua-platform':_0x5da020(0x1c1),'sec-fetch-dest':_0x5da020(0x19c),'sec-fetch-mode':_0x510107(0x105),'sec-fetch-site':_0x510107(0x127),'Referer':_0x510107(0x10a),'Referrer-Policy':_0x4ca266(0xd5)}}),_0x314c53=await axios[_0x5da020(0x19d)](_0x5da020(0x1bc)+_0x4645c9[_0x5da020(0x1b1)][_0x510107(0x128)][_0x5da020(0x1b3)]+'/'+_0x4645c9[_0x510107(0xfc)][_0x510107(0x128)]['id'],{'headers':{'accept':_0x5da020(0x1c3),'accept-language':_0x510107(0x114),'sec-ch-ua':_0x5da020(0x190),'sec-ch-ua-mobile':'?1','sec-ch-ua-platform':_0x5da020(0x1c1),'sec-fetch-dest':_0x5da020(0x19c),'sec-fetch-mode':_0x4ca266(0x99),'sec-fetch-site':_0x5da020(0x198),'Referer':_0x5da020(0x1af),'Referrer-Policy':_0x5da020(0x1a7)}}),_0x2c7a38={'creator':_0x510107(0x126),'result':{'title':_0x4645c9[_0x5da020(0x1b1)][_0x5da020(0x18d)][_0x510107(0x10f)],'artist':_0x4645c9[_0x5da020(0x1b1)][_0x510107(0x128)][_0x5da020(0x1a4)],'thumbnail':_0x4645c9[_0x5da020(0x1b1)][_0x510107(0x128)][_0x5da020(0x1b4)],'url':_0x5da020(0x193)+_0x314c53[_0x5da020(0x1b1)][_0x5da020(0x18d)]['download_url'],'duration':_0x4645c9[_0x510107(0xfc)][_0x510107(0x128)][_0x5da020(0x1a5)]}};_0x27d5b2(_0x2c7a38);}catch(_0x3da978){_0x5b1752({'creator':_0x5da020(0x1b7),'result':_0x5da020(0x1a0)});}});}function _0x3318(){const _0x2e43f5=_0x1260,_0x5f3292=_0x51cd,_0x2aad27=[_0x2e43f5(0xd1),_0x5f3292(0x120),_0x5f3292(0x102),_0x2e43f5(0xba),_0x5f3292(0x124),_0x5f3292(0x11a),_0x5f3292(0x129),_0x5f3292(0x137),_0x2e43f5(0x9f),'each',_0x5f3292(0x13a),_0x5f3292(0x116),_0x5f3292(0x10c),'https://dlpanda.com/id?url=',_0x5f3292(0x128),'play',_0x5f3292(0x12e),_0x2e43f5(0xcb),'114iezlgs',_0x2e43f5(0xc1),_0x5f3292(0x10e),_0x5f3292(0x11b),_0x2e43f5(0xd0),_0x5f3292(0x115),_0x5f3292(0x110),'cross-site',_0x5f3292(0x12c),_0x5f3292(0x11d),_0x5f3292(0x12b),_0x2e43f5(0xce),_0x5f3292(0x103),_0x5f3292(0x122),_0x5f3292(0xff),_0x2e43f5(0xd2),_0x5f3292(0x118),_0x5f3292(0x106),_0x5f3292(0x112),_0x5f3292(0x113),_0x2e43f5(0xbe),'then',_0x5f3292(0x100),'div.col-md-12\x20>\x20img',_0x5f3292(0x133),_0x2e43f5(0x9e),_0x5f3292(0x111),_0x5f3292(0xfd),_0x5f3292(0x138),_0x2e43f5(0xb6),_0x5f3292(0x10a),_0x2e43f5(0xa8),_0x5f3292(0xfc),'POST',_0x5f3292(0x135),_0x5f3292(0x11e),_0x5f3292(0x119),_0x5f3292(0x12d),_0x5f3292(0x126),_0x5f3292(0x131),_0x5f3292(0xfe),_0x5f3292(0x11f)];return _0x3318=function(){return _0x2aad27;},_0x3318();}function _0xbe15(){const _0x43cdc4=_0x1260,_0x1b0704=[_0x43cdc4(0x93),_0x43cdc4(0xbb),_0x43cdc4(0xa7),'artists',_0x43cdc4(0xa8),_0x43cdc4(0xb5),_0x43cdc4(0x9c),_0x43cdc4(0xa9),'application/x-www-form-urlencoded;\x20charset=UTF-8',_0x43cdc4(0xb7),'72849JuNwTD',_0x43cdc4(0xc5),'18sWuPXT',_0x43cdc4(0x95),_0x43cdc4(0xc8),_0x43cdc4(0xad),_0x43cdc4(0xa3),_0x43cdc4(0xc6),_0x43cdc4(0xc4),_0x43cdc4(0xc0),_0x43cdc4(0xca),_0x43cdc4(0xbc),_0x43cdc4(0xac),'cross-site',_0x43cdc4(0xcc),'\x22Android\x22',_0x43cdc4(0xa1),_0x43cdc4(0xc9),_0x43cdc4(0xb2),'Mozilla/5.0\x20(Linux;\x20Android\x2010;\x20K)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/116.0.0.0\x20Mobile\x20Safari/537.36',_0x43cdc4(0xb8),_0x43cdc4(0xc7),_0x43cdc4(0x97),_0x43cdc4(0x9b),'https://api.fabdl.com/spotify/get?url=','load',_0x43cdc4(0xcf),_0x43cdc4(0xb0),'16DxukqL',_0x43cdc4(0xaf),_0x43cdc4(0x9a),_0x43cdc4(0xd2),_0x43cdc4(0xd7),_0x43cdc4(0xcd),_0x43cdc4(0xb4),'1834371SYKLBP','find',_0x43cdc4(0xd5),'3227180wOkGBv',_0x43cdc4(0xc2),'get',_0x43cdc4(0xd4),_0x43cdc4(0x99),_0x43cdc4(0xab),_0x43cdc4(0xb9),_0x43cdc4(0xaa),_0x43cdc4(0x94),'https://spotifydownload.org/','372836DnqKeH',_0x43cdc4(0xb1),_0x43cdc4(0xbf),_0x43cdc4(0xa5),_0x43cdc4(0xd3)];return _0xbe15=function(){return _0x1b0704;},_0xbe15();};function _0x1260(_0x56e5b0,_0x2b407d){const _0xf96805=_0xf968();return _0x1260=function(_0x1260b2,_0x434b32){_0x1260b2=_0x1260b2-0x93;let _0x54c957=_0xf96805[_0x1260b2];return _0x54c957;},_0x1260(_0x56e5b0,_0x2b407d);}async function instagram(_0x27c4fd){return new Promise(async(_0x4bad2e,_0x597d2e)=>{const _0x183a87=_0x1260,_0x3b0b95=_0x51cd,_0x583451=_0x44a8,_0x100598=new URLSearchParams(Object[_0x183a87(0xd6)]({'url':_0x27c4fd,'host':_0x583451(0x1bd)}));await axios[_0x3b0b95(0x108)]({'method':_0x3b0b95(0x134),'baseURL':_0x3b0b95(0x12f),'data':_0x100598,'headers':{'content-type':_0x583451(0x1a1),'cookie':_0x583451(0x1ab),'user-agent':_0x183a87(0xbd)}})[_0x583451(0x1a6)](_0x4f7347=>{const _0x3e7486=_0x3b0b95,_0x5b2aff=_0x583451,_0x4ad609=cheerio[_0x5b2aff(0x1a9)](_0x4f7347[_0x3e7486(0xfc)]),_0x1fc619=_0x4ad609(_0x5b2aff(0x1c2))[_0x5b2aff(0x1a3)]((_0xd97e88,_0x35d829)=>{const _0xe56898=_0x3e7486,_0xe06d52=_0x5b2aff;return _0xe06d52(0x19b)+_0x4ad609(_0x35d829)[_0xe06d52(0x19f)](_0xe56898(0x125))[_0xe06d52(0x1ac)](_0xe06d52(0x194));})[_0x5b2aff(0x19d)](),_0x560682={'creator':_0x3e7486(0x126),'result':{'media':_0x1fc619}};_0x4bad2e(_0x560682);})[_0x583451(0x19a)](_0x27e55=>{const _0x51a6dd=_0x3b0b95,_0x58efc7=_0x583451;console[_0x58efc7(0x19e)](_0x27e55),_0x597d2e({'creator':_0x58efc7(0x1b7),'result':_0x51a6dd(0x139)});});});}function _0xf968(){const _0x4230e0=['music','\x22Not)A;Brand\x22;v=\x2224\x22,\x20\x22Chromium\x22;v=\x22116\x22','result','data','empty','POST','url','axios','Internal\x20server\x20error','name','12BaaUBz','strict-origin-when-cross-origin','entries','7388MjzkJe','4840150OADthX','10024170IiOqdL','catch','403823rRXdzb','318414gssgtN','87242IBMKnQ','cors','video','push','title','2209599pZdfvS','current_language=en','application/json,\x20text/plain,\x20*/*','6268912XOkvcM','651008WkaRXa','960wpuQny','https://api.fabdl.com/spotify/mp3-convert-task/','7CiLVaD','https://api.fabdl.com','97155bFmfWJ','map','id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7','3096303oVfbrh','request','279sWeyUI','Nezzx','src','208iqOVEE','div.row\x20>\x20div.col-md-12\x20>\x20div.row.story-container.mt-4.pb-4.border-bottom','gid','884030tadkTY','https://tikwm.com/api/','20775bupxtC','attr','cheerio','set','24043OxqPgk','1538992xGZoAb','length','16NFixGA','PHPSESSID=rmer1p00mtkqv64ai0pa429d4o','div.col-md-8.mx-auto\x20>\x20a','Mozilla/5.0\x20(Linux;\x20Android\x2010;\x20K)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/116.0.0.0\x20Mobile\x20Safari/537.36','duration_ms','&token=G7eRpMaa','shift','exports','instagram','2430504jJbVhj','log','href','2695520APcDOq','https://saveinsta.io/core/ajax.php','image','https://saveinsta.io/'];_0xf968=function(){return _0x4230e0;};return _0xf968();}module[_0x39c8c8(0x192)]={'tiktok':tiktok,'spotify':spotify,'instagram':instagram};
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "almtools",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Social Media Downloader",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"starts": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": ["ytdl", "youtube"],
|
|
10
|
+
"author": "Nezzx",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"axios": "^1.7.3",
|
|
14
|
+
"cheerio": "^1.0.0"
|
|
15
|
+
}
|
|
16
|
+
}
|