Closed pinglife closed 5 months ago
>>> from eastmoneypy import *
{'EASTMONEY_HOME': '/root/eastmoneypy-home',
'appkey': 'd41d8cd98f00b204e980XXXXX',
'header': 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) '
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 '
'Safari/537.36,Accept-Language: '
'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,Cookie: st_si=762117XXXXX,
'log_path': '/root/eastmoneypy-home/logs'}
>>> get_groups()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/eastmoneypy/api.py", line 68, in get_groups
_, value = parse_resp(resp, key='ginfolist')
File "/usr/local/lib/python3.6/dist-packages/eastmoneypy/api.py", line 35, in parse_resp
raise Exception(f'code:{resp.status_code},msg:{resp.content}')
Exception: code:403,msg:b''
release v0.1.1 should fix this issue.
The same result when using postman to send the request.