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

connection or something of lack #26

Open
matrixloong opened this issue Dec 15, 2022 · 5 comments
Open

connection or something of lack #26

matrixloong opened this issue Dec 15, 2022 · 5 comments

Comments

@matrixloong
Copy link

D:.virtualenvs\study\lib\site-packages\urllib3\connectionpool.py:981: InsecureRequestWarning: Unverified HTTPS request is being made to host 'search.10jqka.com.cn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
Traceback (most recent call last):
File "d:\sourcecodes\projects\seekentries.py", line 3, in
result = wc.search(query="当前热股")
File "D:.virtualenvs\study\lib\site-packages\wencai\core\event.py", line 48, in search
return Wencai(proxies=globals()['global_proxies'], verify=globals()['verify']).search(query_string=query)
File "D:.virtualenvs\study\lib\site-packages\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

@uuhasoo
Copy link

uuhasoo commented Jan 7, 2023

import wencai as wc
from wencai.core.session import Session
Session.headers.update({'Host':'www.iwencai.com'})
wc.set_variable(cn_col=True)
wc.search('人气股票').head(10)

@matrixloong
Copy link
Author

thanks a lot, uuhasoo

import wencai as wc from wencai.core.session import Session Session.headers.update({'Host':'www.iwencai.com'}) wc.set_variable(cn_col=True) wc.search('人气股票').head(10)

@TaucherLoong
Copy link

How to login as a user? non user can't use the web after some seek limits.

@matrixloong
Copy link
Author

matrixloong commented Feb 19, 2023 via email

@liuzhijian
Copy link

How to login as a user? non user can't use the web after some seek limits.

我也是

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

4 participants