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

ip报错? #522

Open
ycwang806 opened this issue Dec 19, 2024 · 2 comments
Open

ip报错? #522

ycwang806 opened this issue Dec 19, 2024 · 2 comments

Comments

@ycwang806
Copy link

File "D:\Python Project\weibo-search-master\weibo\spiders\search.py", line 537, in parse_weibo
weibo["ip"] = self.get_ip(bid)
~~~~~^^^^^^
File "D:\Ancaonda\Lib\site-packages\scrapy\item.py", line 85, in setitem
raise KeyError(f"{self.class.name} does not support field: {key}")
KeyError: 'WeiboItem does not support field: ip'

@dataabc
Copy link
Owner

dataabc commented Dec 19, 2024

有可能items.py被修改过了,且格式不正确。

@ycwang806
Copy link
Author

有可能items.py被修改过了,且格式不正确。

谢谢,已解决!

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

2 participants