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

search报错 #32

Open
rikatinghuang opened this issue May 15, 2024 · 2 comments
Open

search报错 #32

rikatinghuang opened this issue May 15, 2024 · 2 comments

Comments

@rikatinghuang
Copy link

Traceback (most recent call last):
File "/Users/tinghuang/Spider_XHS/search.py", line 95, in
search.main(info)
File "/Users/tinghuang/Spider_XHS/search.py", line 79, in main
self.handle_note_info(query, number, sort, need_cover=True)
File "/Users/tinghuang/Spider_XHS/search.py", line 55, in handle_note_info
ret = js.call('get_xs', api, data, self.cookies['a1'])
TypeError: 'NoneType' object is not subscriptable

@cv-cat
Copy link
Owner

cv-cat commented May 24, 2024

cookies没设置把

@iiweniiang
Copy link

Traceback (most recent call last): File "/Users/tinghuang/Spider_XHS/search.py", line 95, in search.main(info) File "/Users/tinghuang/Spider_XHS/search.py", line 79, in main self.handle_note_info(query, number, sort, need_cover=True) File "/Users/tinghuang/Spider_XHS/search.py", line 55, in handle_note_info ret = js.call('get_xs', api, data, self.cookies['a1']) TypeError: 'NoneType' object is not subscriptable

先执行 npm i jsdom 就可以了

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

3 participants