Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on May 16, 2024

请问下具体怎么修改,源代码还是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.

lyh081 avatar lyh081 commented on May 16, 2024

修改db.py中的 zadd和zincrby函数就可以了,可以参考https://pypi.org/project/redis/ 中的Upgrading from redis-py 2.X to 3.0部分。
或者可以从我的github仓库clone一份我已经改好的版本,修改的地方有注释。

from proxypool.

 avatar commented on May 16, 2024

多谢🙏!

from proxypool.

Germey avatar Germey commented on May 16, 2024

新版本发布,调整了架构和修复一些问题,欢迎试用和提宝贵意见,谢谢!

from proxypool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.