代理池开始运行
Process Process-2:
Traceback (most recent call last):
File "C:\Anaconda3\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\Anaconda3\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "C:\proxypool\scheduler.py", line 28, in schedule_getter
getter.run()
File "C:\proxypool\getter.py", line 23, in run
if not self.is_over_threshold():
File "C:\proxypool\getter.py", line 16, in is_over_threshold
if self.redis.count() >= POOL_UPPER_THRESHOLD:
File "C:\proxypool\db.py", line 83, in count
return self.db.zcard(REDIS_KEY)
File "C:\Anaconda3\lib\site-packages\redis\client.py", line 1701, in zcard
return self.execute_command('ZCARD', name)
Serving Flask app "proxypool.api" (lazy loading)
File "C:\Anaconda3\lib\site-packages\redis\client.py", line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File "C:\Anaconda3\lib\site-packages\redis\client.py", line 680, in parse_response
response = connection.read_response()
File "C:\Anaconda3\lib\site-packages\redis\connection.py", line 629, in read_response
raise response
redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value
开始抓取代理
获取器开始执行
Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
代理池开始运行 Process Process-2: Traceback (most recent call last): File "C:\Anaconda3\lib\multiprocessing\process.py", line 297, in _bootstrap self.run() File "C:\Anaconda3\lib\multiprocessing\process.py", line 99, in run self._target(*self._args, **self._kwargs) File "C:\proxypool\scheduler.py", line 28, in schedule_getter getter.run() File "C:\proxypool\getter.py", line 23, in run if not self.is_over_threshold(): File "C:\proxypool\getter.py", line 16, in is_over_threshold if self.redis.count() >= POOL_UPPER_THRESHOLD: File "C:\proxypool\db.py", line 83, in count return self.db.zcard(REDIS_KEY) File "C:\Anaconda3\lib\site-packages\redis\client.py", line 1701, in zcard return self.execute_command('ZCARD', name)