从入门☞放弃 有酒窝的叶凡
勿好为人师
关注数: 95 粉丝数: 1,042 发帖数: 23,914 关注贴吧数: 469
准备爬虫时在命令行里Python proxyPool.py schedule 时报错? 代码如下: 2022-06-06 14:29:10,955 launcher.py[line:45] INFO ProxyPool Version: 2.4.0 2022-06-06 14:29:10,955 launcher.py[line:50] INFO ProxyPool configure HOST: 0.0.0.0 2022-06-06 14:29:10,955 launcher.py[line:51] INFO ProxyPool configure PORT: 5000 2022-06-06 14:29:10,955 launcher.py[line:52] INFO ProxyPool configure PROXY_FETCHER: ['freeProxy01', 'freeProxy02', 'freeProxy03', 'freeProxy04', 'freeProxy05', 'freeProxy06', 'freeProxy07', 'freeProxy08', 'freeProxy09', 'freeProxy10'] 2022-06-06 14:29:11,024 launcher.py[line:58] INFO ============ DATABASE CONFIGURE ================ 2022-06-06 14:29:11,024 launcher.py[line:59] INFO DB_TYPE: REDIS 2022-06-06 14:29:11,024 launcher.py[line:60] INFO DB_HOST: 127.0.0.1 2022-06-06 14:29:11,024 launcher.py[line:61] INFO DB_PORT: 6379 2022-06-06 14:29:11,024 launcher.py[line:62] INFO DB_NAME: 0 2022-06-06 14:29:11,024 launcher.py[line:63] INFO DB_USER: 2022-06-06 14:29:11,024 launcher.py[line:64] INFO ================================================= 2022-06-06 14:29:11,024 redisClient.py[line:149] ERROR redis connection error: invalid password Traceback (most recent call last): File "C:\Users\sky\python_work\proxy_pool-2.4.0\db\redisClient.py", line 144, in test self.getCount() File "C:\Users\sky\python_work\proxy_pool-2.4.0\db\redisClient.py", line 130, in getCount proxies = self.getAll(https=False) File "C:\Users\sky\python_work\proxy_pool-2.4.0\db\redisClient.py", line 112, in getAll items = self.__conn.hvals(self.name) File "D:\program\python\lib\site-packages\redis\commands\core.py", line 4914, in hvals return self.execute_command("HVALS", name) File "D:\program\python\lib\site-packages\redis\client.py", line 1224, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "D:\program\python\lib\site-packages\redis\connection.py", line 1587, in get_connection connection.connect() File "D:\program\python\lib\site-packages\redis\connection.py", line 626, in connect self.on_connect() File "D:\program\python\lib\site-packages\redis\connection.py", line 716, in on_connect auth_response = self.read_response() File "D:\program\python\lib\site-packages\redis\connection.py", line 827, in read_response response = self._parser.read_response(disable_decoding=disable_decoding) File "D:\program\python\lib\site-packages\redis\connection.py", line 336, in read_response raise error redis.exceptions.AuthenticationError: invalid password 2022-06-06 14:29:11,024 launcher.py[line:39] INFO exit! 这是连接redis时的: D:\program\redis>redis-server.exe D:\program\redis\redis.windows.conf . .-__ ''-._ _.- . . ''-._ Redis 3.2.100 (00000000/0) 64 bit .- .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.-.|'_.-'| Port: 6379 | -. ._ / _.-' | PID: 26432 -._ -._ -./ .-' .-' |-._-. -.__.-' _.-'_.-'| | -.-._ _.-'_.-' | http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fredis.io&urlrefer=83eb4e6c706ccb33afbbfa51d9c78b9f -._ -._-..-'.-' .-' |-._-. -.__.-' _.-'_.-'| | -.-._ _.-'_.-' | -._ -._-..-'_.-' _.-' -._ -..-' _.-' -._ _.-' -..-' [26432] 06 Jun 14:13:26.084 # Server started, Redis version 3.2.100 [26432] 06 Jun 14:13:26.084 * DB loaded from disk: 0.000 seconds [26432] 06 Jun 14:13:26.084 * The server is now ready to accept connections on port 6379 我的问题是:密码就是普通的密码,登录后auth "123456"也ok的,但是在cmd 爬虫的工作目录下为何一输入命令python proxyPool.py schedule 时就报错无效密码?这是怎么回事啊?哪里不对?去问了该开源项目的作者,作者说是redis密码有特殊字符需要转义,但是我的就是普通数字组成。。。 还望有哪位路过的好心大佬帮忙解答?
首页 1 2 下一页