在代理池构建时候出现问题:
Traceback (most recent call last):
File "D:\py_work\ProxyPool-master\proxypool\tester.py", line 32, in test_single_proxy
self.redis.max(proxy)
File "D:\py_work\ProxyPool-master\proxypool\db.py", line 76, in max
return self.db.zadd(REDIS_KEY, MAX_SCORE, proxy)
File "D:\ProgramData\Anaconda3\lib\site-packages\redis\client.py", line 2263, in zadd
for pair in iteritems(mapping):
File "D:\ProgramData\Anaconda3\lib\site-packages\redis\_compat.py", line 123, in iteritems
return iter(x.items())
AttributeError: 'int' object has no attribute 'items'
解决办法:
将redis版本降低到
2.10.5