ruhend-scraper 8.0.0 → 8.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/lib/tiktok.js +1 -1
- package/package.json +1 -1
- package/readme.md +2 -2
package/lib/tiktok.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x584d(){const _0x1349ed=['JIFbQ','wmplay','xt/javascr','/api/','NAyOF','yOtjo','qhSHa','floor','in64;\x20x64)','ipt,\x20*/*;\x20','comment_co','521500labhwU','play_count','hdplay','json','BqzTM','4540905AHUODD','ZIFPj','TrUNQ','ring','1605300FiLkWZ','random','=\x22104\x22','443','\x20Chrome\x22;v','QFwGW','WStKu','NOrPb','https://ww','avatar','n/x-www-fo','data','unique_id','nickname','sLjBn','et=UTF-8','trim','collect_co','ded;\x20chars','\x22\x20Not\x20A;Br','1380395mNXPwH','\x22Chromium\x22','digg_count','203110MoZFdf',';v=\x22104\x22,\x20','q=0.01','rm-urlenco','node-fetch','author','ke\x20Gecko)\x20','(KHTML,\x20li','n/json,\x20te','Chrome/104','\x20(Windows\x20','cover','.0.0.0\x20Saf','gone\x20wrong','play','mzSrR','unt','POST','exports','15pMeWyQ','\x22,\x20\x22Google','title','64erQBiK','ari/537.36','region','\x20AppleWebK','NT\x2010.0;\x20W','toLocaleDa','Chrome/5.0','teString','w.tikwm.co','applicatio','678407ZLHshT','xKIJv','something\x20','Wttcg','toLocaleSt','music_info','1015372hPFDlJ','pUUZw','gbXHQ','it/537.36\x20','DQqla','and\x22;v=\x2299','iLSZH','create_tim'];_0x584d=function(){return _0x1349ed;};return _0x584d();}const _0x4e51ca=_0x18c6;(function(_0x21896a,_0x2aad08){const _0x33554d=_0x18c6,_0x2c2979=_0x21896a();while(!![]){try{const _0x35820d=parseInt(_0x33554d(0x11b))/(0x7*0x12a+0xab*-0x2f+-0x10*-0x174)+-parseInt(_0x33554d(0x154))/(0xea3+-0x16*-0x35+-0x665*0x3)*(parseInt(_0x33554d(0x167))/(-0x581*0x1+0xa*0x36d+-0x236*0xd))+-parseInt(_0x33554d(0x121))/(-0x12bb+-0x53*-0x4f+0x24a*-0x3)+parseInt(_0x33554d(0x151))/(-0x17b*0x3+0x1*0x152b+-0x1*0x10b5)+parseInt(_0x33554d(0x13d))/(0x1*0x12e0+-0xc64+-0x676)+parseInt(_0x33554d(0x134))/(0x1*0xcd6+-0xc40+0x8f*-0x1)*(-parseInt(_0x33554d(0x16a))/(-0x67f*0x2+-0x4a7*0x3+0x1afb))+parseInt(_0x33554d(0x139))/(-0xbf1+-0x72*-0x26+-0x4f2);if(_0x35820d===_0x2aad08)break;else _0x2c2979['push'](_0x2c2979['shift']());}catch(_0x4f431d){_0x2c2979['push'](_0x2c2979['shift']());}}}(_0x584d,-0x9bdb5+0xa8232+0x4dcc6),module[_0x4e51ca(0x166)]={'ttdl':ttdl});function generateRandomIP(){const _0x2584e9=_0x4e51ca,_0x538b65={'iLSZH':function(_0x4f25bc){return _0x4f25bc();}},_0x1cf1ff=()=>Math[_0x2584e9(0x130)](Math[_0x2584e9(0x13e)]()*(-0x59*0x3+0x1c93+-0x1a8a));return _0x538b65[_0x2584e9(0x127)](_0x1cf1ff)+'.'+_0x538b65[_0x2584e9(0x127)](_0x1cf1ff)+'.'+_0x538b65[_0x2584e9(0x127)](_0x1cf1ff)+'.'+_0x538b65[_0x2584e9(0x127)](_0x1cf1ff);}const fetch=require(_0x4e51ca(0x158));function _0x18c6(_0xbaf489,_0x17998f){const _0x545597=_0x584d();return _0x18c6=function(_0x129853,_0x4960f2){_0x129853=_0x129853-(-0x1db9*-0x1+-0x1*-0x1835+-0x34d3);let _0x131949=_0x545597[_0x129853];return _0x131949;},_0x18c6(_0xbaf489,_0x17998f);}async function ttdl(_0x27536d){const _0x4d9e27=_0x4e51ca,_0x2c21a3={'WStKu':_0x4d9e27(0x145)+_0x4d9e27(0x172)+'m','NAyOF':function(_0x52273c,_0x32e0c9,_0x1fd63c){return _0x52273c(_0x32e0c9,_0x1fd63c);},'ZIFPj':function(_0x1839ae,_0x59582e){return _0x1839ae+_0x59582e;},'DQqla':_0x4d9e27(0x12c),'sLjBn':_0x4d9e27(0x165),'pUUZw':_0x4d9e27(0x173)+_0x4d9e27(0x15c)+_0x4d9e27(0x12b)+_0x4d9e27(0x132)+_0x4d9e27(0x156),'mzSrR':_0x4d9e27(0x173)+_0x4d9e27(0x147)+_0x4d9e27(0x157)+_0x4d9e27(0x14f)+_0x4d9e27(0x14c),'qhSHa':function(_0x1930ac){return _0x1930ac();},'JIFbQ':_0x4d9e27(0x140),'BqzTM':_0x4d9e27(0x152)+_0x4d9e27(0x155)+_0x4d9e27(0x150)+_0x4d9e27(0x126)+_0x4d9e27(0x168)+_0x4d9e27(0x141)+_0x4d9e27(0x13f),'yOtjo':_0x4d9e27(0x170)+_0x4d9e27(0x15e)+_0x4d9e27(0x16e)+_0x4d9e27(0x131)+_0x4d9e27(0x16d)+_0x4d9e27(0x124)+_0x4d9e27(0x15b)+_0x4d9e27(0x15a)+_0x4d9e27(0x15d)+_0x4d9e27(0x160)+_0x4d9e27(0x16b),'gbXHQ':function(_0x5099ea,_0x467e8d){return _0x5099ea+_0x467e8d;},'TrUNQ':function(_0x44a21b,_0x2ddee4){return _0x44a21b*_0x2ddee4;},'NOrPb':function(_0x5b51d0,_0xfdae43){return _0x5b51d0+_0xfdae43;},'QFwGW':function(_0x3bdb16,_0x5180ff){return _0x3bdb16+_0x5180ff;},'Wttcg':function(_0x1a2944,_0x2d29fd){return _0x1a2944+_0x2d29fd;},'xKIJv':_0x4d9e27(0x11d)+_0x4d9e27(0x161)};try{let _0x2d863e=_0x2c21a3[_0x4d9e27(0x143)],_0x5a4f16=await _0x2c21a3[_0x4d9e27(0x12d)](fetch,_0x2c21a3[_0x4d9e27(0x13a)](_0x2d863e,_0x2c21a3[_0x4d9e27(0x125)]),{'method':_0x2c21a3[_0x4d9e27(0x14b)],'headers':{'Accept':_0x2c21a3[_0x4d9e27(0x122)],'Content-Type':_0x2c21a3[_0x4d9e27(0x163)],'X-Forwarded-For':_0x2c21a3[_0x4d9e27(0x12f)](generateRandomIP),'Custom-Port':_0x2c21a3[_0x4d9e27(0x129)],'Sec-CH-UA':_0x2c21a3[_0x4d9e27(0x138)],'User-Agent':_0x2c21a3[_0x4d9e27(0x12e)]},'body':new URLSearchParams({'url':_0x27536d,'count':0xc,'cursor':0x0,'web':0x1,'hd':0x1})}),_0x387f79=await _0x5a4f16[_0x4d9e27(0x137)](),_0x51677e=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x16c)],_0x5cc5a7=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x169)],_0x51973a=_0x2c21a3[_0x4d9e27(0x123)](_0x2d863e,_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x159)][_0x4d9e27(0x146)]),_0x232ddf=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x159)][_0x4d9e27(0x14a)],_0x590188=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x159)][_0x4d9e27(0x149)],_0x56485d=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x133)+_0x4d9e27(0x164)][_0x4d9e27(0x11f)+_0x4d9e27(0x13c)](),_0x1b030e=_0x2c21a3[_0x4d9e27(0x123)](_0x2d863e,_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x15f)]),_0x38df6f=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x135)][_0x4d9e27(0x11f)+_0x4d9e27(0x13c)](),_0x764898=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x153)][_0x4d9e27(0x11f)+_0x4d9e27(0x13c)](),_0x25ee30=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x14e)+_0x4d9e27(0x164)][_0x4d9e27(0x11f)+_0x4d9e27(0x13c)](),_0x44a7e4=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x128)+'e'],_0x1c0e80=new Date(_0x2c21a3[_0x4d9e27(0x13b)](_0x44a7e4,-0x1213+0x11f0+0x40b)),_0x5b215a=_0x1c0e80[_0x4d9e27(0x16f)+_0x4d9e27(0x171)](),_0x4da2f7=_0x5b215a[_0x4d9e27(0x14d)](),_0x3a8f9b=_0x2c21a3[_0x4d9e27(0x144)](_0x2d863e,_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x162)]),_0x49282f=_0x2c21a3[_0x4d9e27(0x142)](_0x2d863e,_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x12a)]),_0x52b0e6=_0x2c21a3[_0x4d9e27(0x11e)](_0x2d863e,_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x136)]),_0x27bc0d=_0x387f79[_0x4d9e27(0x148)][_0x4d9e27(0x120)][_0x4d9e27(0x162)],_0x54c7a7='';return{'region':_0x51677e,'title':_0x5cc5a7,'avatar':_0x51973a,'author':_0x232ddf,'username':_0x590188,'comment':_0x56485d,'views':_0x38df6f,'cover':_0x1b030e,'like':_0x764898,'bookmark':_0x25ee30,'published':_0x4da2f7,'video':_0x3a8f9b,'video_wm':_0x49282f,'video_hd':_0x52b0e6,'music':_0x27bc0d,'duration':_0x54c7a7};}catch(_0x411730){throw _0x2c21a3[_0x4d9e27(0x11c)];}}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -7,13 +7,13 @@ Usage
|
|
|
7
7
|
```ts
|
|
8
8
|
const { ttdl } = require('ruhend-scraper')
|
|
9
9
|
const url = 'https://vt.tiktok.com/xxxx'
|
|
10
|
-
let { title, author, username, published, like, comment, share, views, bookmark, video, cover,
|
|
10
|
+
let { title, author, username, published, like, comment, share, views, bookmark, video, cover, music, profilePicture } = await ttdl(url);
|
|
11
11
|
or
|
|
12
12
|
let data = await ttdl(url)
|
|
13
13
|
console.log(data)
|
|
14
14
|
/*
|
|
15
15
|
results JSON
|
|
16
|
-
{ title, author, username, published, like, comment, share, views, bookmark, video, cover,
|
|
16
|
+
{ title, author, username, published, like, comment, share, views, bookmark, video, cover, music, profilePicture }
|
|
17
17
|
*/
|
|
18
18
|
```
|
|
19
19
|
|