This repository was archived by the owner on Jul 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbrainly.js
More file actions
1 lines (1 loc) · 1.74 KB
/
brainly.js
File metadata and controls
1 lines (1 loc) · 1.74 KB
1
const _0x426f=['success','catch','forEach','text','pertanyaan','questionMedia','push','data','then','exports','mana\x20error','error!,\x20try\x20again','media','empty\x20result'];(function(_0x1093e1,_0x426fe6){const _0x5d6b83=function(_0x385ec8){while(--_0x385ec8){_0x1093e1['push'](_0x1093e1['shift']());}};_0x5d6b83(++_0x426fe6);}(_0x426f,0x183));const _0x5d6b=function(_0x1093e1,_0x426fe6){_0x1093e1=_0x1093e1-0x0;let _0x5d6b83=_0x426f[_0x1093e1];return _0x5d6b83;};const _0x1c556d=_0x5d6b;brainlyScraper=require('brainly-scraper'),axios=require('axios'),fs=require('fs');function BrainlySearch(_0x385ec8,_0x3e238c,_0x373b75){const _0x4afb60=_0x5d6b;brainlyScraper(_0x385ec8['toString'](),Number(_0x3e238c))[_0x4afb60('0xd')](_0x205cc6=>{const _0x1de83b=_0x4afb60;let {success:_0x1bf7db,length:_0x4e870d}=_0x205cc6,_0x1270b0=_0x385ec8,_0x43b0b3=_0x4e870d<=0x0?_0x1de83b('0x4'):_0x1de83b('0x5'),_0x253c98=[{'q':_0x1270b0,'success':_0x1bf7db,'length':_0x4e870d,'message':_0x43b0b3}],_0x94a789=[],_0x1071d7=[..._0x253c98,_0x94a789];return _0x205cc6[_0x1de83b('0xc')][_0x1de83b('0x7')]((_0x1b1bd4,_0x3b54bc)=>{const _0x133d26=_0x1de83b;let _0x2e0da3={'id':_0x3b54bc,'pertanyaan':_0x1b1bd4[_0x133d26('0x9')],'fotoPertanyaan':_0x1b1bd4[_0x133d26('0xa')]};_0x1b1bd4['jawaban'][_0x133d26('0x7')](_0x203fbe=>{const _0xcff029=_0x133d26;_0x2e0da3['jawaban']={'judulJawaban':_0x203fbe[_0xcff029('0x8')],'fotoJawaban':_0x203fbe[_0xcff029('0x3')]};}),_0x94a789[_0x133d26('0xb')](_0x2e0da3);}),_0x1071d7;})[_0x4afb60('0xd')](_0x37ee1a=>{return _0x373b75(_0x37ee1a,_0x385ec8);})[_0x4afb60('0x6')](_0x275745=>{const _0x277baf=_0x4afb60;console['log'](_0x277baf('0x1')),_0x373b75([{'success':![],'length':0x0,'message':_0x277baf('0x2')}],_0x385ec8);});}module[_0x1c556d('0x0')]=BrainlySearch;