Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助,get_a_bogus提示语法错误 #532

Open
Schwimmer opened this issue Jan 8, 2025 · 2 comments
Open

求助,get_a_bogus提示语法错误 #532

Schwimmer opened this issue Jan 8, 2025 · 2 comments
Labels
question Further information is requested

Comments

@Schwimmer
Copy link

执行python main.py --platform dy --lt qrcode --type search时会报错:

Traceback (most recent call last):
File "d:\git\MediaCrawler-main\main.py", line 66, in
asyncio.get_event_loop().run_until_complete(main())
File "C:\ProgramData\miniconda3\envs\openai310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "d:\git\MediaCrawler-main\main.py", line 56, in main
await crawler.start()
File "d:\git\MediaCrawler-main\media_platform\douyin\core.py", line 77, in start
await self.search()
File "d:\git\MediaCrawler-main\media_platform\douyin\core.py", line 106, in search
posts_res = await self.dy_client.search_info_by_keyword(keyword=keyword,
File "d:\git\MediaCrawler-main\media_platform\douyin\client.py", line 177, in search_info_by_keyword
return await self.get("/aweme/v1/web/general/search/single/", query_params, headers=headers)
File "d:\git\MediaCrawler-main\media_platform\douyin\client.py", line 112, in get
await self.__process_req_params(uri, params, headers)
File "d:\git\MediaCrawler-main\media_platform\douyin\client.py", line 91, in __process_req_params
a_bogus = await get_a_bogus(uri, query_string, post_data, headers["User-Agent"], self.playwright_page)
File "d:\git\MediaCrawler-main\media_platform\douyin\help.py", line 51, in get_a_bogus
return get_a_bogus_from_js(url, params, user_agent)
File "d:\git\MediaCrawler-main\media_platform\douyin\help.py", line 67, in get_a_bogus_from_js
return douyin_sign_obj.call(sign_js_name, params, user_agent)
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_abstract_runtime_context.py", line 37, in call
return self._call(name, *args)
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_external_runtime.py", line 92, in _call
return self.eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args))
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_external_runtime.py", line 78, in eval
return self.exec
(code)
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_abstract_runtime_context.py", line 18, in exec

return self.exec(source)
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_external_runtime.py", line 88, in exec
return self._extract_result(output)
File "C:\ProgramData\miniconda3\envs\openai310\lib\site-packages\execjs_external_runtime.py", line 167, in _extract_result
raise ProgramError(value)
execjs._exceptions.ProgramError: SyntaxError: 缺少 ')'

@NanmiCoder
Copy link
Owner

常见问题汇总 里有这个问题哈

@NanmiCoder NanmiCoder added the question Further information is requested label Jan 8, 2025
@Schwimmer
Copy link
Author

常见问题汇总 里有这个问题哈

非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants