Comments (4)
请问下具体怎么修改,源代码还是proxypool部分?
Traceback (most recent call last):
File "anaconda3/envs/spider/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "anaconda3/envs/spider/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "Code/ProxyPool/proxypool/scheduler.py", line 28, in schedule_getter
getter.run()
File "Code/ProxyPool/proxypool/getter.py", line 30, in run
self.redis.add(proxy)
File "Code/ProxyPool/proxypool/db.py", line 30, in add
return self.db.zadd(REDIS_KEY, score, proxy)
File "naconda3/envs/spider/lib/python3.6/site-packages/redis/client.py", line 2263, in zadd
for pair in iteritems(mapping):
File "anaconda3/envs/spider/lib/python3.6/site-packages/redis/_compat.py", line 123, in iteritems
return iter(x.items())
AttributeError: 'int' object has no attribute 'items'
from proxypool.
修改db.py中的 zadd和zincrby函数就可以了,可以参考https://pypi.org/project/redis/ 中的Upgrading from redis-py 2.X to 3.0部分。
或者可以从我的github仓库clone一份我已经改好的版本,修改的地方有注释。
from proxypool.
多谢🙏!
from proxypool.
新版本发布,调整了架构和修复一些问题,欢迎试用和提宝贵意见,谢谢!
from proxypool.
Related Issues (20)
- Heroku deploy HOT 2
- Task exception was never retrieved HOT 1
- Not able to start with the docker HOT 1
- 通过 random 接口调用的 ip ,试了十几个全都不可用 HOT 6
- 修改源码后Dockerfile重新build镜像报错 HOT 4
- Windows 环境下常规方式运行会重复多次启动进程
- 大佬, IP是从哪个网站获取的啊 HOT 1
- 为什么验证的返回的结果仍会带有本地ip, HOT 6
- tester报错:TypeError: Passing coroutines is forbidden, use tasks explicitly. HOT 2
- 没有模块报错
- 建议接口增加[返回代理数量]参数 HOT 1
- 建议接口增加[返回代理数量]参数
- mac 上使用 docker 部署出错。 HOT 4
- 怎么解决python11下运行run,py后报ImportError: cannot import name 'ProxySchemeUnsupported' from 'requests.packages.urllib3.exceptions'的问题? HOT 2
- Proxy, transparente
- Proxy
- It occurs an error when running the run.py on the 'run_tester' function HOT 1
- 无法正常获取代理 HOT 1
- 无法连接到localhost:5555,ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。 HOT 3
- 运行过程中有错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxypool.