|
@@ -100,11 +100,11 @@ pip install -r requirements.txt
|
|
|
需要分别启动定时任务和api
|
|
需要分别启动定时任务和api
|
|
|
到Config.ini中配置你的SSDB
|
|
到Config.ini中配置你的SSDB
|
|
|
|
|
|
|
|
-项目目录下:
|
|
|
|
|
->>>python -m Schedule.ProxyRefreshSchedule
|
|
|
|
|
|
|
+到Schedule目录下:
|
|
|
|
|
+>>>python ProxyRefreshSchedule.py
|
|
|
|
|
|
|
|
-到Api目录下:
|
|
|
|
|
->>>python -m Run.main
|
|
|
|
|
|
|
+到Run目录下:
|
|
|
|
|
+>>>python main.py
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### 5、使用
|
|
### 5、使用
|
|
@@ -141,7 +141,7 @@ def delete_proxy(proxy):
|
|
|
|
|
|
|
|
def spider():
|
|
def spider():
|
|
|
# ....
|
|
# ....
|
|
|
- requests.get('https://www.example.com', proxies={"http": "http://{}".format(get_proxy)})
|
|
|
|
|
|
|
+ requests.get('https://www.example.com', proxies={"http": "http://{}".format(get_proxy())})
|
|
|
# ....
|
|
# ....
|
|
|
|
|
|
|
|
```
|
|
```
|