ruhend-scraper 8.0.4 → 8.0.6

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.
Files changed (2) hide show
  1. package/lib/youtube.js +1 -1
  2. package/package.json +5 -2
package/lib/youtube.js CHANGED
@@ -272006,7 +272006,7 @@
272006
272006
  make mah tinggal make udah ada paduannya ini ga ush gatel lu pindahin kode ke sc lu
272007
272007
  ingat ya karma pasti berlaku untuk yang suka maling karna ga ikhlas
272008
272008
  **/
272009
- function _0x17f3(_0x535f7e,_0x51f2d5){const _0xc193c6=_0x1283();return _0x17f3=function(_0x3fc69c,_0x3a19fa){_0x3fc69c=_0x3fc69c-(0x9c2+0x2689+-0x1738*0x2);let _0x15d808=_0xc193c6[_0x3fc69c];return _0x15d808;},_0x17f3(_0x535f7e,_0x51f2d5);}function _0x1283(){const _0x9872a=['3.googleus','yt-search','d76f2f6a98','2983533rRJYHs','https://lh','RJNmf','includes','eeKIt','download_u','Ye7yYoKKe4','580QHeRnU','ShogWtMBMP','url','descriptio','https://ap','timestamp','FQQGy','b4Ukh__rBb','801TkSltC','response','data','match','&url=','message','jOTNw','uploadDate','Please\x20pro','PykGG409oz','BxzxkrubV7','audio','1080','name','PIJuv','title','&api=dfcb6','mp3','oceansaver','then','trim','videos','66fmdwaU','\x20benar.','UdDqD','search','7bsNe44yTg','429001kgpDHS','NktTr','akan\x20masuk','length','URL\x20tidak\x20','xyUGS','mp4','vide\x20query','test','.in/ajax/d','ZScbC','15DsfAik','get','video','n/x-www-fo','author','94gjkege8a','catch','FRTmR','t=0&format','rXhWl','axios','php','LoNH8A=s50','exec','downloadVi','YlHmE','1063030xySXoC','wXwgkjNRe4','salahan:\x20','CFVkh','VFnCD','360','resolve','rm-urlenco','buffer','https://p.','Terjadi\x20ke','et=UTF-8','p?id=','i-cdn.save','valid.\x20Sil','exports','uTube\x20yang','UqUml','kRvYN','arraybuffe','.in/ajax/p','\x20or\x20link\x20y','p?copyrigh','255396rkaPNa','ID-nya\x20gak','rogress.ph','AsNnQ','KraGI','yB3jiNps91','downloadMP','PbQgT','ownload.ph','ring','121594EceIQS','\x20ada','100090FNyZzM','20168nBycmx','kan\x20URL\x20Yo','BKuen','nxQBl','info','ded;\x20chars','applicatio','toLocaleSt','720','download','llWZt','HAXNy','ercontent.','RTzWV','fKMWn','deo','thumbnail','outube..','z/ajax-v2.','480','QCBkS','map','views','zHKjfxq6y9','servall.xy','YxXhZ','aZUIo','4ab232222','com/3zkP2S','cache','post','cNDxI'];_0x1283=function(){return _0x9872a;};return _0x1283();}const _0x2a846f=_0x17f3;(function(_0x533c8b,_0x482973){const _0xe6473c=_0x17f3,_0x52fcf3=_0x533c8b();while(!![]){try{const _0x2dda85=-parseInt(_0xe6473c(0x22b))/(0x1ae1+0x2697+0x4177*-0x1)+parseInt(_0xe6473c(0x246))/(-0x2150+-0x7e5*-0x2+0x1188)+-parseInt(_0xe6473c(0x236))/(-0x1*-0xf84+-0xb30*-0x2+0x25e1*-0x1)*(parseInt(_0xe6473c(0x25d))/(-0x1*-0x425+0x30d*-0x9+-0xbaa*-0x2))+parseInt(_0xe6473c(0x1dd))/(0x1*0x121d+-0x1bfb+0x9e3*0x1)*(parseInt(_0xe6473c(0x226))/(-0x313*0x3+0x3*0x3f4+-0x29d*0x1))+-parseInt(_0xe6473c(0x201))/(0x1*-0x1061+-0x1*0x153b+0x25a3)+-parseInt(_0xe6473c(0x1de))/(-0x1*0x1b43+0x449*0x9+-0xb46)*(-parseInt(_0xe6473c(0x210))/(0x26c9*0x1+0x1*0x1fc6+0x3*-0x1782))+-parseInt(_0xe6473c(0x208))/(0x7*0xc5+0x26dc+-0x2c35*0x1)*(-parseInt(_0xe6473c(0x1db))/(-0xf25+-0x1f1e+0x2e4e));if(_0x2dda85===_0x482973)break;else _0x52fcf3['push'](_0x52fcf3['shift']());}catch(_0x58c071){_0x52fcf3['push'](_0x52fcf3['shift']());}}}(_0x1283,0x434f*0x13+-0xbd0f7+0xb6ed*0x13));const axios=require(_0x2a846f(0x240)),yts=require(_0x2a846f(0x1ff)),extractVid=_0x57ac7f=>{const _0x514711=_0x2a846f,_0x4a278d=/(?:youtu\.be\/|youtube\.com(?:.*[?&]v=|.*\/))([^?&]+)/[_0x514711(0x243)](_0x57ac7f);return _0x4a278d?_0x4a278d[0x7*-0x245+0x1*0x1f01+-0x1*0xf1d]:null;},info=async _0x45504e=>{const _0x1dd31d=_0x2a846f,_0x1ed2bf={'FRTmR':function(_0x2bfc2f,_0x297aed){return _0x2bfc2f(_0x297aed);}},{title:_0x8ae185,description:_0x1eb753,url:_0x10469e,videoId:_0x36024e,seconds:_0x3de927,timestamp:_0x4d2597,views:_0x6f3522,genre:_0x23a115,uploadDate:_0x9f28e5,ago:_0x815dac,image:_0x1f1356,thumbnail:_0x3c4ff3,author:_0x479e1b}=await _0x1ed2bf[_0x1dd31d(0x23d)](yts,{'videoId':_0x45504e});return{'title':_0x8ae185,'description':_0x1eb753,'url':_0x10469e,'videoId':_0x36024e,'seconds':_0x3de927,'timestamp':_0x4d2597,'views':_0x6f3522,'genre':_0x23a115,'uploadDate':_0x9f28e5,'ago':_0x815dac,'image':_0x1f1356,'thumbnail':_0x3c4ff3,'author':_0x479e1b};},search=async _0x21c465=>{const _0x594caf=_0x2a846f,_0x266331={'BKuen':function(_0x2aa0a7,_0x321102){return _0x2aa0a7(_0x321102);}},_0xdab852=await _0x266331[_0x594caf(0x1e0)](yts,_0x21c465)[_0x594caf(0x223)](_0x38b63f=>_0x38b63f[_0x594caf(0x225)]);return _0xdab852[_0x594caf(0x1f3)](({videoId:_0x102704,views:_0x379663,url:_0x81679c,title:_0x326d2a,description:_0x391802,image:_0x57e873,thumbnail:_0x59e306,seconds:_0x2773a7,timestamp:_0x2cbd4a,ago:_0x15bc86,author:_0x4c91a})=>({'title':_0x326d2a,'id':_0x102704,'url':_0x81679c,'media':{'thumbnail':_0x59e306||'','image':_0x57e873},'description':_0x391802,'duration':{'seconds':_0x2773a7,'timestamp':_0x2cbd4a},'published':_0x15bc86,'views':_0x379663,'author':_0x4c91a}));},YTMate=async _0x52536e=>{const _0x402446=_0x2a846f,_0x4a2d4b={'YxXhZ':_0x402446(0x218)+_0x402446(0x232)+_0x402446(0x25b)+_0x402446(0x1ef),'ZScbC':function(_0x182469,_0x1b0390){return _0x182469(_0x1b0390);},'UqUml':_0x402446(0x25e)+_0x402446(0x1dc),'PIJuv':_0x402446(0x1e7),'VFnCD':_0x402446(0x229)};if(!_0x52536e[_0x402446(0x224)]())throw new Error(_0x4a2d4b[_0x402446(0x1f7)]);const _0x3b97bb=/youtu(\.)?be/[_0x402446(0x233)](_0x52536e);if(_0x3b97bb){const _0x4b0a61=_0x4a2d4b[_0x402446(0x235)](extractVid,_0x52536e);if(!_0x4b0a61)throw new Error(_0x4a2d4b[_0x402446(0x257)]);const _0x59f4bf=await _0x4a2d4b[_0x402446(0x235)](info,_0x4b0a61);return{'type':_0x4a2d4b[_0x402446(0x21e)],'download':{..._0x59f4bf}};}else{const _0x26647=await _0x4a2d4b[_0x402446(0x235)](search,_0x52536e);return{'type':_0x4a2d4b[_0x402446(0x24a)],'query':_0x52536e,'total':_0x26647[_0x402446(0x22e)],'videos':_0x26647};}};class YouTubeDownloader{static async[_0x2a846f(0x244)+_0x2a846f(0x1ed)](_0x5e597a,_0x17c2a0,_0x445c83){const _0x9be052=_0x2a846f,_0x1d8c0c={'KraGI':_0x9be052(0x22f)+_0x9be052(0x254)+_0x9be052(0x22d)+_0x9be052(0x1df)+_0x9be052(0x256)+_0x9be052(0x227),'rXhWl':_0x9be052(0x20c)+_0x9be052(0x253)+_0x9be052(0x1f6)+_0x9be052(0x1f0)+_0x9be052(0x241),'cNDxI':_0x9be052(0x1e4)+_0x9be052(0x239)+_0x9be052(0x24d)+_0x9be052(0x1e3)+_0x9be052(0x251),'QCBkS':function(_0x2055ac,_0x317532){return _0x2055ac+_0x317532;},'xyUGS':_0x9be052(0x250)+_0x9be052(0x248)},_0x5b5135=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:shorts\/|watch\?v=|music\?v=|embed\/|v\/|.+\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,_0x332c06=_0x5e597a[_0x9be052(0x213)](_0x5b5135);if(!_0x332c06)throw new Error(_0x1d8c0c[_0x9be052(0x261)]);const _0xb61aba=_0x332c06[0x2408+-0x1*-0x1be5+-0x3fec],_0x3b7dbe=new URLSearchParams({'videoid':_0xb61aba,'downtype':_0x17c2a0,'vquality':_0x445c83});try{const _0x11f606=await axios[_0x9be052(0x1fc)](_0x1d8c0c[_0x9be052(0x23f)],_0x3b7dbe,{'headers':{'Content-Type':_0x1d8c0c[_0x9be052(0x1fd)]}});return _0x11f606[_0x9be052(0x212)][_0x9be052(0x20a)];}catch(_0x4013d6){throw new Error(_0x1d8c0c[_0x9be052(0x1f2)](_0x1d8c0c[_0x9be052(0x230)],_0x4013d6[_0x9be052(0x215)]));}}static async[_0x2a846f(0x263)+'3'](_0x4e50f1,_0xec6c9a={}){const _0x3f9646=_0x2a846f,_0x13afff={'FQQGy':_0x3f9646(0x221)};try{const _0x4b939e=await YouTubeDownloader[_0x3f9646(0x244)+_0x3f9646(0x1ed)](_0x4e50f1,_0x13afff[_0x3f9646(0x20e)],_0xec6c9a[_0x3f9646(0x221)]);return{'mp3':_0x4b939e};}catch(_0x58a842){throw new Error(_0x58a842[_0x3f9646(0x215)]);}}static async[_0x2a846f(0x263)+'4'](_0x492bec,_0xa5f48a={}){const _0x14e026=_0x2a846f,_0x289b39={'jOTNw':_0x14e026(0x231)};try{const _0x452a05=await YouTubeDownloader[_0x14e026(0x244)+_0x14e026(0x1ed)](_0x492bec,_0x289b39[_0x14e026(0x216)],_0xa5f48a[_0x14e026(0x231)]);return{'mp4':_0x452a05};}catch(_0x5960c9){throw new Error(_0x5960c9[_0x14e026(0x215)]);}}}class __video{constructor(_0x57d679){const _0x152f77=_0x2a846f,_0x3f6c19={'aZUIo':_0x152f77(0x24b),'llWZt':_0x152f77(0x1f1),'HAXNy':_0x152f77(0x1e6),'kRvYN':_0x152f77(0x21c)};this[_0x152f77(0x20a)]=_0x57d679,this[_0x152f77(0x238)]=[_0x3f6c19[_0x152f77(0x1f8)],_0x3f6c19[_0x152f77(0x1e8)],_0x3f6c19[_0x152f77(0x1e9)],_0x3f6c19[_0x152f77(0x258)]];}[_0x2a846f(0x1e7)]=async _0x28e9c3=>{const _0x2a5ca2=_0x2a846f,_0x59bda4={'nxQBl':_0x2a5ca2(0x259)+'r'};if(!_0x28e9c3)return{'success':![],'list':this[_0x2a5ca2(0x238)]};if(!this[_0x2a5ca2(0x238)][_0x2a5ca2(0x204)](_0x28e9c3))return{'success':![],'list':this[_0x2a5ca2(0x238)]};try{const {data:_0x108afb}=await axios[_0x2a5ca2(0x237)](_0x2a5ca2(0x24f)+_0x2a5ca2(0x222)+_0x2a5ca2(0x234)+_0x2a5ca2(0x265)+_0x2a5ca2(0x25c)+_0x2a5ca2(0x23e)+'='+_0x28e9c3+_0x2a5ca2(0x214)+this[_0x2a5ca2(0x20a)]+(_0x2a5ca2(0x220)+_0x2a5ca2(0x200)+_0x2a5ca2(0x23b)+_0x2a5ca2(0x1f9)));let _0x5ccd5b={};while(!![]){const _0x466921=await axios[_0x2a5ca2(0x237)](_0x2a5ca2(0x24f)+_0x2a5ca2(0x222)+_0x2a5ca2(0x25a)+_0x2a5ca2(0x25f)+_0x2a5ca2(0x252)+_0x108afb['id'])[_0x2a5ca2(0x23c)](_0x1dce82=>_0x1dce82[_0x2a5ca2(0x211)]);if(_0x466921[_0x2a5ca2(0x212)][_0x2a5ca2(0x206)+'rl']){_0x5ccd5b={'type':_0x28e9c3,'buffer':(await axios[_0x2a5ca2(0x237)](_0x466921[_0x2a5ca2(0x212)][_0x2a5ca2(0x206)+'rl'],{'responseType':_0x59bda4[_0x2a5ca2(0x1e1)]}))[_0x2a5ca2(0x212)]};break;}else{}await new Promise(_0x277316=>setTimeout(_0x277316,-0x1f21+0xef9+0x6*0x358));}return{..._0x108afb[_0x2a5ca2(0x1e2)],..._0x5ccd5b};}catch(_0x3f3a61){return{'success':![],'err':_0x3f3a61};}};}class __audio{constructor(_0x35fc18){const _0x1421b3=_0x2a846f,_0x3c22eb={'eeKIt':_0x1421b3(0x221)};this[_0x1421b3(0x20a)]=_0x35fc18,this[_0x1421b3(0x21b)]=[_0x3c22eb[_0x1421b3(0x205)]];}[_0x2a846f(0x1e7)]=async _0x505b32=>{const _0x24d8f0=_0x2a846f,_0x22a67c={'YlHmE':_0x24d8f0(0x259)+'r'};if(!_0x505b32)return{'success':![],'list':this[_0x24d8f0(0x21b)]};if(!this[_0x24d8f0(0x21b)][_0x24d8f0(0x204)](_0x505b32))return{'success':![],'list':this[_0x24d8f0(0x21b)]};try{const {data:_0x5b5cdf}=await axios[_0x24d8f0(0x237)](_0x24d8f0(0x24f)+_0x24d8f0(0x222)+_0x24d8f0(0x234)+_0x24d8f0(0x265)+_0x24d8f0(0x25c)+_0x24d8f0(0x23e)+'='+_0x505b32+_0x24d8f0(0x214)+this[_0x24d8f0(0x20a)]+(_0x24d8f0(0x220)+_0x24d8f0(0x200)+_0x24d8f0(0x23b)+_0x24d8f0(0x1f9)));let _0x375fda={};while(!![]){const _0x2b73a2=await axios[_0x24d8f0(0x237)](_0x24d8f0(0x24f)+_0x24d8f0(0x222)+_0x24d8f0(0x25a)+_0x24d8f0(0x25f)+_0x24d8f0(0x252)+_0x5b5cdf['id'])[_0x24d8f0(0x23c)](_0x280a59=>_0x280a59[_0x24d8f0(0x211)]);if(_0x2b73a2[_0x24d8f0(0x212)][_0x24d8f0(0x206)+'rl']){_0x375fda={'type':_0x505b32,'buffer':(await axios[_0x24d8f0(0x237)](_0x2b73a2[_0x24d8f0(0x212)][_0x24d8f0(0x206)+'rl'],{'responseType':_0x22a67c[_0x24d8f0(0x245)]}))[_0x24d8f0(0x212)]};break;}else{}await new Promise(_0x3719cd=>setTimeout(_0x3719cd,0x1951*-0x1+0x13*0xc4+0xd*0x121));}return{..._0x5b5cdf[_0x24d8f0(0x1e2)],..._0x375fda};}catch(_0x5c9ebb){return{'success':![],'err':_0x5c9ebb};}};}async function ytmp4(_0x5014b8){const _0x17c8dd=_0x2a846f,_0x4690fb={'RTzWV':_0x17c8dd(0x1e6),'UdDqD':function(_0x5054cb,_0x5306f1){return _0x5054cb(_0x5306f1);},'fKMWn':function(_0x4ccdac,_0x32208e){return _0x4ccdac||_0x32208e;},'CFVkh':_0x17c8dd(0x202)+_0x17c8dd(0x1fe)+_0x17c8dd(0x1ea)+_0x17c8dd(0x1fa)+_0x17c8dd(0x207)+_0x17c8dd(0x22a)+_0x17c8dd(0x20f)+_0x17c8dd(0x247)+_0x17c8dd(0x219)+_0x17c8dd(0x21a)+_0x17c8dd(0x1f5)+_0x17c8dd(0x209)+_0x17c8dd(0x262)+_0x17c8dd(0x242)+'0'};try{const _0x30c861=new __video(_0x5014b8),_0x4dc2f2=await(await _0x30c861[_0x17c8dd(0x1e7)](_0x4690fb[_0x17c8dd(0x1eb)]))[_0x17c8dd(0x24e)],_0x2ff269=await _0x4690fb[_0x17c8dd(0x228)](YTMate,_0x5014b8),_0x3ffec1=_0x2ff269[_0x17c8dd(0x1e7)];return{'title':_0x3ffec1[_0x17c8dd(0x21f)]||'','video':_0x4690fb[_0x17c8dd(0x1ec)](_0x4dc2f2,_0x4690fb[_0x17c8dd(0x249)]),'author':_0x3ffec1[_0x17c8dd(0x23a)][_0x17c8dd(0x21d)]||'','description':_0x3ffec1[_0x17c8dd(0x20b)+'n']||'','duration':_0x3ffec1[_0x17c8dd(0x20d)]||'','views':_0x3ffec1[_0x17c8dd(0x1f4)][_0x17c8dd(0x1e5)+_0x17c8dd(0x266)]()||'','upload':_0x3ffec1[_0x17c8dd(0x217)]||'','thumbnail':_0x3ffec1[_0x17c8dd(0x1ee)]||_0x4690fb[_0x17c8dd(0x249)]};}finally{delete require[_0x17c8dd(0x1fb)][require[_0x17c8dd(0x24c)](__filename)];}}async function ytmp3(_0x353396){const _0xf2c643=_0x2a846f,_0x15fb3c={'RJNmf':_0xf2c643(0x221),'AsNnQ':function(_0x5a904b,_0x14b3c2){return _0x5a904b(_0x14b3c2);},'PbQgT':function(_0x53306b,_0x3ba4ed){return _0x53306b||_0x3ba4ed;},'NktTr':_0xf2c643(0x202)+_0xf2c643(0x1fe)+_0xf2c643(0x1ea)+_0xf2c643(0x1fa)+_0xf2c643(0x207)+_0xf2c643(0x22a)+_0xf2c643(0x20f)+_0xf2c643(0x247)+_0xf2c643(0x219)+_0xf2c643(0x21a)+_0xf2c643(0x1f5)+_0xf2c643(0x209)+_0xf2c643(0x262)+_0xf2c643(0x242)+'0'};try{const _0x224c11=new __audio(_0x353396),_0x37542d=await(await _0x224c11[_0xf2c643(0x1e7)](_0x15fb3c[_0xf2c643(0x203)]))[_0xf2c643(0x24e)],_0x1857c5=await _0x15fb3c[_0xf2c643(0x260)](YTMate,_0x353396),_0x5a0293=_0x1857c5[_0xf2c643(0x1e7)];return{'title':_0x5a0293[_0xf2c643(0x21f)]||'','audio':_0x15fb3c[_0xf2c643(0x264)](_0x37542d,_0x15fb3c[_0xf2c643(0x22c)]),'author':_0x5a0293[_0xf2c643(0x23a)][_0xf2c643(0x21d)]||'','description':_0x5a0293[_0xf2c643(0x20b)+'n']||'','duration':_0x5a0293[_0xf2c643(0x20d)]||'','views':_0x5a0293[_0xf2c643(0x1f4)][_0xf2c643(0x1e5)+_0xf2c643(0x266)]()||'','upload':_0x5a0293[_0xf2c643(0x217)]||'','thumbnail':_0x5a0293[_0xf2c643(0x1ee)]||_0x15fb3c[_0xf2c643(0x22c)]};}finally{delete require[_0xf2c643(0x1fb)][require[_0xf2c643(0x24c)](__filename)];}}module[_0x2a846f(0x255)]={'ytmp3':ytmp3,'ytmp4':ytmp4};
272009
+ const _0x52330b=_0x43f4;(function(_0x46f8d9,_0x2b5e26){const _0x4ab82c=_0x43f4,_0x2ee4fd=_0x46f8d9();while(!![]){try{const _0x189a7f=parseInt(_0x4ab82c(0x1bd))/(0x3*-0x92f+-0x1514+0x30a2)*(parseInt(_0x4ab82c(0x1ad))/(0x233f+0x481*0x8+-0x4745*0x1))+parseInt(_0x4ab82c(0x240))/(0x17e8+-0x31f+0x1*-0x14c6)*(parseInt(_0x4ab82c(0x22e))/(0x52f*-0x6+0xce0+0x123e))+-parseInt(_0x4ab82c(0x1c6))/(0x6bd+-0x1*-0x847+-0xeff)+parseInt(_0x4ab82c(0x1c0))/(-0x190c+0x1d*-0xe8+0x7*0x756)*(-parseInt(_0x4ab82c(0x1b4))/(0x10ed+-0xdb1*0x1+-0x1*0x335))+parseInt(_0x4ab82c(0x1a2))/(0x92f+0x1f25*-0x1+0x15fe)+-parseInt(_0x4ab82c(0x1d2))/(0x2*0x6+0x9*0x2a9+-0x17f4)*(parseInt(_0x4ab82c(0x221))/(-0x5*0x640+-0x3b9+0x2303))+parseInt(_0x4ab82c(0x200))/(-0x2116+0x18a8+-0xf1*-0x9)*(-parseInt(_0x4ab82c(0x1d9))/(0x106*-0x8+0x3*0x9c7+-0xb*0x1eb));if(_0x189a7f===_0x2b5e26)break;else _0x2ee4fd['push'](_0x2ee4fd['shift']());}catch(_0x244112){_0x2ee4fd['push'](_0x2ee4fd['shift']());}}}(_0x274f,0x555cc+0x4*0x12676+-0x1a1*0x46c));const axios=require(_0x52330b(0x1eb)),yts=require(_0x52330b(0x1de)),extractVid=_0x17d166=>{const _0x31f819=_0x52330b,_0x2b816d=/(?:youtu\.be\/|youtube\.com(?:.*[?&]v=|.*\/))([^?&]+)/[_0x31f819(0x1be)](_0x17d166);return _0x2b816d?_0x2b816d[-0x2568+-0x185a*0x1+0x3dc3*0x1]:null;},info=async _0x3f3ba4=>{const _0x2045b9=_0x52330b,_0x2dcb09={'KBnJq':function(_0x28a7db,_0x308b3a){return _0x28a7db(_0x308b3a);}},{title:_0xc417fa,description:_0x487386,url:_0x3bbd5e,videoId:_0x4cf9e6,seconds:_0x3481db,timestamp:_0x525676,views:_0x3ee2a4,genre:_0x2b2c52,uploadDate:_0xcbbc04,ago:_0x5c0df8,image:_0x1467fa,thumbnail:_0x13c25d,author:_0x1ceae2}=await _0x2dcb09[_0x2045b9(0x223)](yts,{'videoId':_0x3f3ba4});return{'title':_0xc417fa,'description':_0x487386,'url':_0x3bbd5e,'videoId':_0x4cf9e6,'seconds':_0x3481db,'timestamp':_0x525676,'views':_0x3ee2a4,'genre':_0x2b2c52,'uploadDate':_0xcbbc04,'ago':_0x5c0df8,'image':_0x1467fa,'thumbnail':_0x13c25d,'author':_0x1ceae2};},search=async _0x22c974=>{const _0x4d7b75=_0x52330b,_0x4065c0={'CDEqf':function(_0x39395d,_0x4bdea6){return _0x39395d(_0x4bdea6);}},_0x409e1c=await _0x4065c0[_0x4d7b75(0x1f6)](yts,_0x22c974)[_0x4d7b75(0x1fa)](_0x37e2b8=>_0x37e2b8[_0x4d7b75(0x1cd)]);return _0x409e1c[_0x4d7b75(0x1c8)](({videoId:_0x3193f3,views:_0x143434,url:_0x243791,title:_0x57040f,description:_0x5b7a52,image:_0x1a2eb5,thumbnail:_0x39d8f7,seconds:_0x33e65c,timestamp:_0x32e455,ago:_0xbc662f,author:_0x487bd8})=>({'title':_0x57040f,'id':_0x3193f3,'url':_0x243791,'media':{'thumbnail':_0x39d8f7||'','image':_0x1a2eb5},'description':_0x5b7a52,'duration':{'seconds':_0x33e65c,'timestamp':_0x32e455},'published':_0xbc662f,'views':_0x143434,'author':_0x487bd8}));},YTMate=async _0x1aaf1b=>{const _0x5394d0=_0x52330b,_0x3bc85f={'ZDgmX':_0x5394d0(0x1d3)+_0x5394d0(0x195)+_0x5394d0(0x249)+_0x5394d0(0x21b),'jBuoj':function(_0x144881,_0x4298f2){return _0x144881(_0x4298f2);},'eoiFu':_0x5394d0(0x23a)+_0x5394d0(0x22d),'BGWuF':_0x5394d0(0x224),'cyeoG':_0x5394d0(0x1cc)};if(!_0x1aaf1b[_0x5394d0(0x22a)]())throw new Error(_0x3bc85f[_0x5394d0(0x19a)]);const _0x3e45e7=/youtu(\.)?be/[_0x5394d0(0x1bf)](_0x1aaf1b);if(_0x3e45e7){const _0x594645=_0x3bc85f[_0x5394d0(0x222)](extractVid,_0x1aaf1b);if(!_0x594645)throw new Error(_0x3bc85f[_0x5394d0(0x1a6)]);const _0x333da2=await _0x3bc85f[_0x5394d0(0x222)](info,_0x594645);return{'type':_0x3bc85f[_0x5394d0(0x1ba)],'download':{..._0x333da2}};}else{const _0x276476=await _0x3bc85f[_0x5394d0(0x222)](search,_0x1aaf1b);return{'type':_0x3bc85f[_0x5394d0(0x19b)],'query':_0x1aaf1b,'total':_0x276476[_0x5394d0(0x237)],'videos':_0x276476};}};function _0x43f4(_0x338ebc,_0x3297f9){const _0x51d497=_0x274f();return _0x43f4=function(_0x5d6f7a,_0x46c399){_0x5d6f7a=_0x5d6f7a-(0x1283+0x81b*-0x1+-0x8db);let _0x49fdc5=_0x51d497[_0x5d6f7a];return _0x49fdc5;},_0x43f4(_0x338ebc,_0x3297f9);}function getYouTubeVideoId(_0x15566a){const _0xb48b47=_0x52330b,_0x50db51=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|v\/|embed\/|user\/[^\/\n\s]+\/)?(?:watch\?v=|v%3D|embed%2F|video%2F)?|youtu\.be\/|youtube\.com\/watch\?v=|youtube\.com\/embed\/|youtube\.com\/v\/|youtube\.com\/shorts\/|youtube\.com\/playlist\?list=)([a-zA-Z0-9_-]{11})/,_0x2bd66a=_0x15566a[_0xb48b47(0x1b3)](_0x50db51);return _0x2bd66a?_0x2bd66a[-0x656+0xb78+-0x521]:null;}const {CookieJar}=require(_0x52330b(0x244)+'ie'),{wrapper}=require(_0x52330b(0x1b7)+_0x52330b(0x206)+_0x52330b(0x1ef)),cheerio=require(_0x52330b(0x1c4)),fetch=require(_0x52330b(0x218)),BodyForm=require(_0x52330b(0x201)),jar=new CookieJar(),client=wrapper(axios[_0x52330b(0x1ff)]({'jar':jar})),y2save={'baseURL':_0x52330b(0x21c)+_0x52330b(0x1a0),'headers':{'accept':_0x52330b(0x23d)+_0x52330b(0x1ce)+_0x52330b(0x198)+_0x52330b(0x24a)+_0x52330b(0x1f3),'content-type':_0x52330b(0x23d)+_0x52330b(0x1b5)+_0x52330b(0x1c7)+_0x52330b(0x1f4)+_0x52330b(0x232),'origin':_0x52330b(0x21c)+_0x52330b(0x1a0),'referer':_0x52330b(0x21c)+_0x52330b(0x22f)+'d','user-agent':_0x52330b(0x234)+_0x52330b(0x1f9),'x-requested-with':_0x52330b(0x1f2)+_0x52330b(0x23b)},'fmt':[_0x52330b(0x1fe),_0x52330b(0x1e4)],'qualities':{'mp4':[_0x52330b(0x1f8),_0x52330b(0x1b8),_0x52330b(0x228),_0x52330b(0x1a4)],'mp3':[_0x52330b(0x1fc)]},'geToken':async function(){const _0x2b8b81=_0x52330b,_0x871010={'JunVN':function(_0x11f852,_0x564090){return _0x11f852(_0x564090);},'xiunq':_0x2b8b81(0x1db)+_0x2b8b81(0x1d1)+_0x2b8b81(0x1cb),'LGIiE':_0x2b8b81(0x20b),'rTtjY':_0x2b8b81(0x18e)+_0x2b8b81(0x1c5)+_0x2b8b81(0x243)+_0x2b8b81(0x1c3)+'\x20','OmBLW':_0x2b8b81(0x214)};try{const _0x2ffb2a=await client[_0x2b8b81(0x1a3)](this[_0x2b8b81(0x20a)]+_0x2b8b81(0x1ac),{'headers':this[_0x2b8b81(0x24b)]}),_0x398d62=cheerio[_0x2b8b81(0x18f)](_0x2ffb2a[_0x2b8b81(0x1c2)]);return _0x871010[_0x2b8b81(0x1c1)](_0x398d62,_0x871010[_0x2b8b81(0x23f)])[_0x2b8b81(0x230)](_0x871010[_0x2b8b81(0x226)]);}catch(_0x3d2da6){return console[_0x2b8b81(0x196)](_0x871010[_0x2b8b81(0x21d)]),_0x871010[_0x2b8b81(0x193)];}},'search':async function(_0x2afcef){const _0x4a45ca=_0x52330b,_0x43bbe3={'Utqmj':function(_0xbe3ef2,_0x954ffa){return _0xbe3ef2(_0x954ffa);},'rhNhB':_0x4a45ca(0x23c)+_0x4a45ca(0x1ea),'XicyO':_0x4a45ca(0x214)};try{const _0x472921=await this[_0x4a45ca(0x210)](),_0x43916d=await client[_0x4a45ca(0x1bb)](this[_0x4a45ca(0x20a)]+_0x4a45ca(0x247),_0x4a45ca(0x1e5)+_0x472921+_0x4a45ca(0x1d7)+_0x43bbe3[_0x4a45ca(0x204)](encodeURIComponent,_0x2afcef),{'headers':this[_0x4a45ca(0x24b)]});return _0x43916d[_0x4a45ca(0x1c2)];}catch(_0x2bebc6){return console[_0x4a45ca(0x196)](_0x43bbe3[_0x4a45ca(0x1e1)]),_0x43bbe3[_0x4a45ca(0x1a7)];}},'convert':async function(_0x322678,_0x19ac1b){const _0x26ae38=_0x52330b,_0xc75326={'WOjEi':function(_0x58c258,_0x4dfd2e){return _0x58c258(_0x4dfd2e);},'JWUwi':_0x26ae38(0x23c)+_0x26ae38(0x1ea),'HrrwL':_0x26ae38(0x214)};try{const _0x35c96a=await this[_0x26ae38(0x210)](),_0xfaf155=await client[_0x26ae38(0x1bb)](this[_0x26ae38(0x20a)]+(_0x26ae38(0x238)+_0x26ae38(0x23e)),_0x26ae38(0x1e5)+_0x35c96a+_0x26ae38(0x19c)+_0x322678+_0x26ae38(0x235)+_0xc75326[_0x26ae38(0x229)](encodeURIComponent,_0x19ac1b),{'headers':this[_0x26ae38(0x24b)]});return _0xfaf155[_0x26ae38(0x1c2)];}catch(_0x46d890){return console[_0x26ae38(0x196)](_0xc75326[_0x26ae38(0x1b2)]),_0xc75326[_0x26ae38(0x192)];}},'getfmt':function(_0x19e572){const _0x35bab8=_0x52330b,_0x5a912d={'mp4':_0x19e572[_0x35bab8(0x1c2)][_0x35bab8(0x18d)+_0x35bab8(0x21a)][_0x35bab8(0x1ab)][_0x35bab8(0x1c8)](_0x448e98=>_0x448e98[_0x35bab8(0x1b1)]),'mp3':_0x19e572[_0x35bab8(0x1c2)][_0x35bab8(0x18d)+_0x35bab8(0x21a)][_0x35bab8(0x1ca)][_0x35bab8(0x1c8)](_0x1acf3a=>_0x1acf3a[_0x35bab8(0x1b1)])};return _0x5a912d;},'main':async function(_0x22dcd3,_0x302589,_0x1714b5){const _0x4d2b8e=_0x52330b,_0x3b4cd6={'ottZc':_0x4d2b8e(0x202)+_0x4d2b8e(0x245),'lAxGz':function(_0x119763,_0x5468bb){return _0x119763!==_0x5468bb;},'NLpoI':_0x4d2b8e(0x1df),'rxmzX':function(_0x576ffa,_0x1fa512){return _0x576ffa===_0x1fa512;},'terqm':_0x4d2b8e(0x1fe),'ovxdy':_0x4d2b8e(0x22b),'bHXdx':_0x4d2b8e(0x24c)};try{if(!this[_0x4d2b8e(0x248)][_0x4d2b8e(0x211)](_0x302589))return _0x3b4cd6[_0x4d2b8e(0x209)];const _0x48e578=await this[_0x4d2b8e(0x1cc)](_0x22dcd3);if(_0x3b4cd6[_0x4d2b8e(0x1b9)](_0x48e578[_0x4d2b8e(0x1d4)],'ok'))return _0x3b4cd6[_0x4d2b8e(0x216)];const _0x2e99d9=this[_0x4d2b8e(0x215)](_0x48e578);let _0x4c0363=_0x3b4cd6[_0x4d2b8e(0x1af)](_0x302589,_0x3b4cd6[_0x4d2b8e(0x1a5)])?_0x48e578[_0x4d2b8e(0x1c2)][_0x4d2b8e(0x18d)+_0x4d2b8e(0x21a)][_0x4d2b8e(0x1ab)]:_0x48e578[_0x4d2b8e(0x1c2)][_0x4d2b8e(0x18d)+_0x4d2b8e(0x21a)][_0x4d2b8e(0x1ca)];var _0x342bbb=_0x4c0363[_0x4d2b8e(0x1e7)](_0x4d26c8=>_0x4d26c8[_0x4d2b8e(0x1b1)]===_0x1714b5)||_0x4c0363[_0x4d2b8e(0x1e7)](_0x41b366=>_0x41b366[_0x4d2b8e(0x1b1)]===_0x4d2b8e(0x1a4))||_0x4c0363[_0x4d2b8e(0x1e7)](_0x160ce5=>_0x160ce5[_0x4d2b8e(0x1b1)]===_0x4d2b8e(0x1f8));const _0x2190d9=await this[_0x4d2b8e(0x212)](_0x48e578[_0x4d2b8e(0x1c2)][_0x4d2b8e(0x1bc)],_0x342bbb[_0x4d2b8e(0x1ed)]);if(_0x3b4cd6[_0x4d2b8e(0x1b9)](_0x2190d9[_0x4d2b8e(0x1d4)],'ok'))return _0x3b4cd6[_0x4d2b8e(0x1dc)];return _0x2190d9[_0x4d2b8e(0x19f)];}catch(_0x12d1cb){return console[_0x4d2b8e(0x196)](_0x12d1cb),_0x3b4cd6[_0x4d2b8e(0x1b0)];}}},tmp=async(_0x1fb38a,_0x545bfb={})=>{const _0x2275bd=_0x52330b,_0x1e0f45={'QmRAk':function(_0xa3205f,_0x2f3466){return _0xa3205f===_0x2f3466;},'UTEJk':_0x2275bd(0x1fe),'XeJWR':_0x2275bd(0x1e4),'gKBNC':_0x2275bd(0x1f1),'FmhEq':function(_0x27a49f,_0x16c656){return _0x27a49f+_0x16c656;},'iKGdM':function(_0x38ac49,_0x13ceea){return _0x38ac49(_0x13ceea);},'QAOlj':_0x2275bd(0x1f7)+_0x2275bd(0x1e3)+_0x2275bd(0x1a9)+_0x2275bd(0x18f),'txUVG':_0x2275bd(0x191),'QPtTW':_0x2275bd(0x1f7)+_0x2275bd(0x1e3)+_0x2275bd(0x1aa),'eItry':_0x2275bd(0x214)},_0xce77a=_0x1e0f45[_0x2275bd(0x1f0)](_0x545bfb[_0x2275bd(0x219)],_0x1e0f45[_0x2275bd(0x1da)])?_0x1e0f45[_0x2275bd(0x1da)]:_0x1e0f45[_0x2275bd(0x20f)];let _0x13ae40=new BodyForm();_0x13ae40[_0x2275bd(0x242)](_0x1e0f45[_0x2275bd(0x1e0)],_0x1fb38a,_0x1e0f45[_0x2275bd(0x1d8)](Date[_0x2275bd(0x239)]()+'.',_0xce77a));try{const {data:_0x250e41}=await _0x1e0f45[_0x2275bd(0x217)](axios,{'url':_0x1e0f45[_0x2275bd(0x203)],'method':_0x1e0f45[_0x2275bd(0x1cf)],'headers':{..._0x13ae40[_0x2275bd(0x1c9)]()},'data':_0x13ae40}),_0x40d12a=/https?:\/\/tmpfiles.org\/(.*)/[_0x2275bd(0x1be)](_0x250e41[_0x2275bd(0x1c2)][_0x2275bd(0x197)]);return _0x1e0f45[_0x2275bd(0x1d8)](_0x1e0f45[_0x2275bd(0x1e6)],_0x40d12a[0x1f5e+-0x35*-0x75+0x2*-0x1bcb]);}catch(_0x664887){return console[_0x2275bd(0x196)](_0x664887),_0x1e0f45[_0x2275bd(0x1e8)];}};async function __audio(_0x15face){const _0x4cb3d1=_0x52330b,_0x2a77cf={'hsnWg':_0x4cb3d1(0x1e4),'zTALU':_0x4cb3d1(0x1fc),'aOseq':function(_0x3bd2e6,_0xc45f1a){return _0x3bd2e6(_0xc45f1a);},'fSOtA':function(_0x8fe9ea,_0x4614ee){return _0x8fe9ea(_0x4614ee);}},_0x24e2b0=_0x2a77cf[_0x4cb3d1(0x225)],_0x5b7ca4=_0x2a77cf[_0x4cb3d1(0x190)],_0x179bf5=await y2save[_0x4cb3d1(0x1d5)](_0x15face,_0x24e2b0,_0x5b7ca4),_0x192699=await(await _0x2a77cf[_0x4cb3d1(0x1fd)](fetch,_0x179bf5))[_0x4cb3d1(0x1a8)](),_0x1dbc1c=await _0x2a77cf[_0x4cb3d1(0x1dd)](tmp,_0x192699);return _0x1dbc1c;}async function __video(_0xff7d0f){const _0xac420f=_0x52330b,_0x322f9c={'IFlpQ':_0xac420f(0x1fe),'nkBGw':_0xac420f(0x228),'guEGX':function(_0x57cc4c,_0x2269a3){return _0x57cc4c(_0x2269a3);}},_0xfa4bb4=_0x322f9c[_0xac420f(0x194)],_0x34a1d3=_0x322f9c[_0xac420f(0x1d6)],_0x3531b5=await y2save[_0xac420f(0x1d5)](_0xff7d0f,_0xfa4bb4,_0x34a1d3),_0x3c85f1=await(await _0x322f9c[_0xac420f(0x22c)](fetch,_0x3531b5))[_0xac420f(0x1a8)](),_0x5069ca=await _0x322f9c[_0xac420f(0x22c)](tmp,_0x3c85f1);return _0x5069ca;}function _0x274f(){const _0x27acb1=['yB3jiNps91','\x22csrf-toke','162Dwcueq','Please\x20pro','status','main','nkBGw','&query=','FmhEq','12XBgRCH','UTEJk','meta[name=','ovxdy','fSOtA','yt-search','falled','gKBNC','rhNhB','thumbnail','pfiles.org','mp3','_token=','QPtTW','find','eItry','BxzxkrubV7','response\x20🫵','axios','hzxQT','key','descriptio','ort','QmRAk','file','XMLHttpReq','q=0.01','ded;\x20chars','timestamp','CDEqf','https://tm','360P','0.0','then','PykGG409oz','128kbps','aOseq','mp4','create','3743311WRMbXT','form-data','format\x20not','QAOlj','Utqmj','zHKjfxq6y9','iejar-supp','com/3zkP2S','ShogWtMBMP','ottZc','baseURL','content','b4Ukh__rBb','exports','title','XeJWR','geToken','includes','convert','ercontent.','error','getfmt','NLpoI','iKGdM','node-fetch','ext','nks','outube..','https://y2','rTtjY','3.googleus','author','views','55220ZCjEIf','jBuoj','KBnJq','download','hsnWg','LGIiE','Ye7yYoKKe4','720p','WOjEi','trim','Failed','guEGX','\x20ada','451444gBebpr','save.com/i','attr','7bsNe44yTg','et=UTF-8','tFjTN','Postify/1.','&key=','wXwgkjNRe4','length','/searchCon','now','ID-nya\x20gak','uest','Kagak\x20ada\x20','applicatio','vert','xiunq','6IUDZFM','WRREw','append','\x20ada!\x20manu','tough-cook','\x20available','name','/search','fmt','\x20or\x20link\x20y','ipt,\x20*/*;\x20','headers','\x20error','convert_li','CSRF\x20Token','load','zTALU','POST','HrrwL','OmBLW','IFlpQ','vide\x20query','log','url','xt/javascr','LoNH8A=s50','ZDgmX','cyeoG','&vid=','ring','https://lh','dlink','save.com','xUVty','1447968gJZVJn','get','1080p','terqm','eoiFu','XicyO','buffer','/api/v1/up','/dl/','video','/id','28GyJkKS','uploadDate','rxmzX','bHXdx','quality','JWUwi','match','63eoWRap','n/x-www-fo','toLocaleSt','axios-cook','480p','lAxGz','BGWuF','post','vid','24169bnMdNS','exec','test','1494fhnnOT','JunVN','data','al\x20aja\x20yak','cheerio','\x20nya\x20kagak','620090CYAGEY','rm-urlenco','map','getHeaders','audio','n\x22]','search','videos','n/json,\x20te','txUVG'];_0x274f=function(){return _0x27acb1;};return _0x274f();}async function ytmp3(_0x425adf){const _0x8d2291=_0x52330b,_0x3b3675={'xUVty':function(_0x44bc43,_0xc463b){return _0x44bc43(_0xc463b);},'WRREw':_0x8d2291(0x19e)+_0x8d2291(0x21e)+_0x8d2291(0x213)+_0x8d2291(0x207)+_0x8d2291(0x227)+_0x8d2291(0x231)+_0x8d2291(0x20c)+_0x8d2291(0x236)+_0x8d2291(0x1fb)+_0x8d2291(0x1e9)+_0x8d2291(0x205)+_0x8d2291(0x208)+_0x8d2291(0x1d0)+_0x8d2291(0x199)+'0'};try{const _0x5ac3ed=await _0x3b3675[_0x8d2291(0x1a1)](__audio,_0x425adf),_0x4caf8e=await _0x3b3675[_0x8d2291(0x1a1)](YTMate,_0x425adf),_0x58a5b3=_0x4caf8e[_0x8d2291(0x224)];return{'title':_0x58a5b3[_0x8d2291(0x20e)]||'','audio':_0x5ac3ed,'author':_0x58a5b3[_0x8d2291(0x21f)][_0x8d2291(0x246)]||'','description':_0x58a5b3[_0x8d2291(0x1ee)+'n']||'','duration':_0x58a5b3[_0x8d2291(0x1f5)]||'','views':_0x58a5b3[_0x8d2291(0x220)][_0x8d2291(0x1b6)+_0x8d2291(0x19d)]()||'','upload':_0x58a5b3[_0x8d2291(0x1ae)]||'','thumbnail':_0x58a5b3[_0x8d2291(0x1e2)]||_0x3b3675[_0x8d2291(0x241)]};}catch(_0x2d7b34){throw _0x2d7b34;}}async function ytmp4(_0xa6fdff){const _0x5dfd45=_0x52330b,_0xee78c7={'tFjTN':function(_0x43c57c,_0x51e7f6){return _0x43c57c(_0x51e7f6);},'hzxQT':_0x5dfd45(0x19e)+_0x5dfd45(0x21e)+_0x5dfd45(0x213)+_0x5dfd45(0x207)+_0x5dfd45(0x227)+_0x5dfd45(0x231)+_0x5dfd45(0x20c)+_0x5dfd45(0x236)+_0x5dfd45(0x1fb)+_0x5dfd45(0x1e9)+_0x5dfd45(0x205)+_0x5dfd45(0x208)+_0x5dfd45(0x1d0)+_0x5dfd45(0x199)+'0'};try{const _0x200a35=await _0xee78c7[_0x5dfd45(0x233)](__video,_0xa6fdff),_0x3a729e=await _0xee78c7[_0x5dfd45(0x233)](YTMate,_0xa6fdff),_0x3680e1=_0x3a729e[_0x5dfd45(0x224)];return{'title':_0x3680e1[_0x5dfd45(0x20e)]||'','video':_0x200a35,'author':_0x3680e1[_0x5dfd45(0x21f)][_0x5dfd45(0x246)]||'','description':_0x3680e1[_0x5dfd45(0x1ee)+'n']||'','duration':_0x3680e1[_0x5dfd45(0x1f5)]||'','views':_0x3680e1[_0x5dfd45(0x220)][_0x5dfd45(0x1b6)+_0x5dfd45(0x19d)]()||'','upload':_0x3680e1[_0x5dfd45(0x1ae)]||'','thumbnail':_0x3680e1[_0x5dfd45(0x1e2)]||_0xee78c7[_0x5dfd45(0x1ec)]};}catch(_0x45a3e5){throw _0x45a3e5;}}module[_0x52330b(0x20d)]={'ytmp3':ytmp3,'ytmp4':ytmp4};
272010
272010
  /**
272011
272011
   ‎
272012
272012
   ‎
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruhend-scraper",
3
- "version": "8.0.4",
3
+ "version": "8.0.6",
4
4
  "description": "scraper downloader tiktok ytmp3 ytmp4 Facebook instagram youtube search",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,8 +19,11 @@
19
19
  "homepage": "https://github.com/ruhend2001/maleficent",
20
20
  "dependencies": {
21
21
  "axios": "^1.3.2",
22
- "cheerio": "^1.0.0-rc.10",
22
+ "axios-cookiejar-support": "^5.0.5",
23
+ "cheerio": "1.0.0-rc.10",
24
+ "tough-cookie": "^5.0.0",
23
25
  "node-fetch": "^2.6.1",
26
+ "form-data": "^4.0.0",
24
27
  "tar": "7.4.0",
25
28
  "yt-search": "^2.12.1"
26
29
  }