B1gM8c / X-Bogus

抖音X-Bogus生成接口
492 stars 165 forks source link

有个疑问 #3

Open 2857584289 opened 1 year ago

2857584289 commented 1 year ago

有了X-Bogus之后,这个接口还是没办法用吗 https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?reflow_source=reflow_page&item_ids=7206528063071325444&msToken=DHMNfrabeKto2SvJXngK-AnuDMBKjl2W_C3O_l0rYAxLXJ7tXZj9lZW4P65nqHIt7Uh_DwtIThtXICMbJj0WEzZiGKrWaBhoRaBr_tQRW7rScMmfQPJYVw==&X-Bogus=DFSzswSOw3UANrdZtaWCT5ppgizy&_signature=_02B4Z6wo00001LDk-hQAAIDBRZsQidU2ZOiw9P6AAEg.qvmEfOKJOKO5QbzxWMZx6VHsVl5n.dnRG7y1.78hdiRdxmfznZixzo30cVoLdGofSc2meZm0owQ8ur4CG9VHw5hhbwUtJU6xnFKeb1

B1gM8c commented 1 year ago

有了X-Bogus之后,这个接口还是没办法用吗 https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?reflow_source=reflow_page&item_ids=7206528063071325444&msToken=DHMNfrabeKto2SvJXngK-AnuDMBKjl2W_C3O_l0rYAxLXJ7tXZj9lZW4P65nqHIt7Uh_DwtIThtXICMbJj0WEzZiGKrWaBhoRaBr_tQRW7rScMmfQPJYVw==&X-Bogus=DFSzswSOw3UANrdZtaWCT5ppgizy&_signature=_02B4Z6wo00001LDk-hQAAIDBRZsQidU2ZOiw9P6AAEg.qvmEfOKJOKO5QbzxWMZx6VHsVl5n.dnRG7y1.78hdiRdxmfznZixzo30cVoLdGofSc2meZm0owQ8ur4CG9VHw5hhbwUtJU6xnFKeb1

有了X-Bogus之后,你可能还需要携带相应的请求头(包括User-AgentCookieReferer)才能请求到数据呢

qxsun commented 1 year ago

raise ProcessExitedWithNonZeroStatus(status=status, stdout=stdoutdata, stderr=stderrdata) execjs._exceptions.ProcessExitedWithNonZeroStatus: (101, '', '/tmp/execjsun58aa_p.js:483:16 Expected ; but found a\n let a = !1;\n ^\n/tmp/execjsun58aa_p.js:524:8 Expected an operand but found )\n }, () => 0, () => "03v", {\n ^\n/tmp/execjsun58aa_p.js:526:5 Expected an operand but found ,\n }, {\n ^\n/tmp/execjsun58aa_p.js:528:22 Expected ; but found :\n msNewTokenList: [],\n ^\n/tmp/execjsun58aa_p.js:530:17 Expected ; but found :\n clickList: [],\n ^\n/tmp/execjsun58aa_p.js:532:19 Expected ; but found :\n activeState: [],\n ^\n/tmp/execjsun58aa_p.js:534:15 Expected ; but found :\n envcode: 0,\n ^\n/tmp/execjsun58aa_p.js:536:16 Expected ; but found :\n msStatus: 0,\n ^\n/tmp/execjsun58aa_p.js:538:13 Expected ; but found :\n ttwid: "",\n ^\n/tmp/execjsun58aa_p.js:540:19 Expected ; but found :\n tt_webid_v2: ""\n ^\n/tmp/execjsun58aa_p.js:544:12 Expected : but found a\n let a = new Uint8Array(3);\n ^\n/tmp/execjsun58aa_p.js:545:8 Invalid return statement\n return a[0] = e / 256, a[1] = e % 256, a[2] = b % 256, String.fromCharCode.apply(null, a)\n ^\n/tmp/execjsun58aa_p.js:546:4 Expected eof but found }\n }, (e, b) => {\n ^\n') 171.82.109.61 - - [07/Mar/2023 12:08:12] "POST /X-Bogus HTTP/1.1" 500 - 部署服务 python3 server.py 报这个错误,可以帮忙解答一下不,语法看着没啥问题

B1gM8c commented 1 year ago

你装个node环境试试,譬如centos系统

yum install nodejs
qxsun commented 1 year ago

File "/usr/local/lib/python3.7/site-packages/execjs/_external_runtime.py", line 167, in _extract_result raise ProgramError(value) execjs._exceptions.ProgramError: TypeError: Cannot read property 'JS_MD5_NO_COMMON_JS' of null 装了nodejs后,提示这个错误

B1gM8c commented 1 year ago

File "/usr/local/lib/python3.7/site-packages/execjs/_external_runtime.py", line 167, in _extract_result raise ProgramError(value) execjs._exceptions.ProgramError: TypeError: Cannot read property 'JS_MD5_NO_COMMON_JS' of null 装了nodejs后,提示这个错误

ChatGPT回复: 这个错误信息表明在使用 Node.js 运行时时出现了错误,可能的原因包括: