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

proxypool.error.PoolEmptyError: 'The proxy pool is empty' #23

Open
liyongshen opened this issue May 17, 2018 · 2 comments
Open

proxypool.error.PoolEmptyError: 'The proxy pool is empty' #23

liyongshen opened this issue May 17, 2018 · 2 comments

Comments

@liyongshen
Copy link

每次代理取走一个值,redis删除一个值,当取比存更快时,redis中键proxies里没有值时,键proxies会被删除,这时程序找不到proxies键也不会再存值到redis中,导致无限死循环在Refreshing ip,Waiting for adding,需要重启。能不能修复一下这个bug

@liyongshen
Copy link
Author

貌似解决了下面的问题就可以解决了。。。
TypeError: expected string or bytes-like object

@pythonfood
Copy link

TypeError: expected string or bytes-like object
报这个错误,简单解决办法是,找到报错的那个方法,直接屏蔽掉或删掉就好了。这是一段爬取代理网站的代码,删掉没影响,嘿嘿。

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