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

wc.search(query='当前热股') 出错 #29

Open
SHMoney2021 opened this issue Mar 24, 2023 · 0 comments
Open

wc.search(query='当前热股') 出错 #29

SHMoney2021 opened this issue Mar 24, 2023 · 0 comments

Comments

@SHMoney2021
Copy link

result = wc.search(query='当前热股')

File "D:\wencai\core\event.py", line 48, in search
return Wencai(proxies=globals()['global_proxies'], verify=globals()['verify']).search(query_string=query)
File "D:\wencai\core\crawler.py", line 102, in search
result = r.json()['data']['answer'][0]['txt'][0]['content']['components'][0]['data']['datas']
TypeError: list indices must be integers or slices, not str

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

No branches or pull requests

1 participant