longxiaofei / spider-BaiduIndex

data sdk for baidu Index
MIT License
748 stars 230 forks source link

BaiduIndex.get_index()报错 #74

Closed hepl-sys closed 2 years ago

hepl-sys commented 2 years ago

Traceback (most recent call last): File "/Users/apple/Desktop/hepl/wonderlab/快手/百度指数.py", line 27, in for index in baidu_index.get_index(): File "/Users/apple/Library/Python/3.8/lib/python/site-packages/baidux/baidu_index.py", line 51, in get_index encrypt_datas, uniqid = self._get_encrypt_datas( File "/Users/apple/Library/Python/3.8/lib/python/site-packages/baidux/baidu_index.py", line 88, in _get_encrypt_datas uniqid = datas['data']['uniqid'] TypeError: string indices must be integers

longxiaofei commented 2 years ago

请使用最新版本的qdata