UNPKG

softie-api

Version:

A module with api collection. Written with only Javascript and a node-friendly streaming interface.

2 lines (1 loc) 2.02 kB
const _0x511a42=_0x2ce0;(function(_0x27ca80,_0x24d542){const _0x299e44=_0x2ce0,_0xb9ca64=_0x27ca80();while(!![]){try{const _0x4ab13a=-parseInt(_0x299e44(0x1c6))/0x1+parseInt(_0x299e44(0x1c1))/0x2*(parseInt(_0x299e44(0x1be))/0x3)+parseInt(_0x299e44(0x1c5))/0x4+-parseInt(_0x299e44(0x1b5))/0x5+-parseInt(_0x299e44(0x1c2))/0x6+-parseInt(_0x299e44(0x1b3))/0x7+parseInt(_0x299e44(0x1b2))/0x8;if(_0x4ab13a===_0x24d542)break;else _0xb9ca64['push'](_0xb9ca64['shift']());}catch(_0x205bc9){_0xb9ca64['push'](_0xb9ca64['shift']());}}}(_0xd4b6,0x6640c));function _0xd4b6(){const _0xedd919=['319613jMJWMs','text','2496665wRueUB','error','message','POST','#sdlink','https://fdown.net/download.php','.lib-row.lib-desc','trim','Error:','453729RlBLBz','href','exports','2kQYRGa','2005434IJVEGe','#hdlink','node-fetch','970572KRsGsg','789072cnJHpZ','then','attr','load','13545960elvrhw'];_0xd4b6=function(){return _0xedd919;};return _0xd4b6();}function _0x2ce0(_0x3ec236,_0x191a7b){const _0xd4b618=_0xd4b6();return _0x2ce0=function(_0x2ce0b1,_0x42d35a){_0x2ce0b1=_0x2ce0b1-0x1af;let _0x7143b6=_0xd4b618[_0x2ce0b1];return _0x7143b6;},_0x2ce0(_0x3ec236,_0x191a7b);}const fetch=(..._0x5aa2c)=>import(_0x511a42(0x1c4))[_0x511a42(0x1af)](({default:_0x217909})=>_0x217909(..._0x5aa2c)),cheerio=require('cheerio');async function facebookDown(_0x39539b){const _0x35d810=_0x511a42;try{const _0x5d76e1={'method':_0x35d810(0x1b8),'body':new URLSearchParams({'URLz':_0x39539b})},_0x516629=await fetch(_0x35d810(0x1ba),_0x5d76e1),_0x47ad72=await _0x516629['text'](),_0x3d87ce=cheerio[_0x35d810(0x1b1)](_0x47ad72);return{'title':_0x3d87ce('.lib-row.lib-header')[_0x35d810(0x1b4)]()[_0x35d810(0x1bc)](),'description':_0x3d87ce(_0x35d810(0x1bb))['text']()['trim'](),'sdLink':_0x3d87ce(_0x35d810(0x1b9))[_0x35d810(0x1b0)](_0x35d810(0x1bf)),'hdLink':_0x3d87ce(_0x35d810(0x1c3))['attr']('href')};}catch(_0x4e57c3){return console[_0x35d810(0x1b6)](_0x35d810(0x1bd),_0x4e57c3[_0x35d810(0x1b7)]),null;}};module[_0x511a42(0x1c0)]={'facebookDown':facebookDown};