Skip to content

Commit 2fd55da

Browse files
committed
ignore zhandaye
1 parent 737998f commit 2fd55da

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ proxypool | 2020-02-19 17:09:46,596 INFO success: tester entered RUNNING stat
8383
export REDIS_HOST='localhost'
8484
export REDIS_PORT=6379
8585
export REDIS_PASSWORD=''
86+
export REDIS_DB=0
8687
```
8788

8889
或者只设置连接字符串:
@@ -91,7 +92,13 @@ export REDIS_PASSWORD=''
9192
export REDIS_CONNECTION_STRING='redis://[password]@host:port/db'
9293
```
9394

94-
这里连接字符串的格式需要符合 `redis://[password]@host:port/db` 的格式。
95+
如果没有密码也要设置为:
96+
97+
```shell script
98+
export REDIS_CONNECTION_STRING='redis://@host:port/db'
99+
```
100+
101+
这里连接字符串的格式需要符合 `redis://[password]@host:port/db` 的格式,注意不要遗漏 `@`
95102

96103
以上两种设置任选其一即可。
97104

proxypool/crawlers/public/zhandaye.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ZhandayeCrawler(BaseCrawler):
1717
'User-Agent': 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36'
1818
}
1919
urls = []
20+
ignore = True
2021

2122
def crawl(self):
2223
self.crawl_catalog()

0 commit comments

Comments
 (0)