Jelajahi Sumber

[update] 修改启动方式

jhao104 9 tahun lalu
induk
melakukan
1d3ec19cef
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      README.md

+ 5 - 5
README.md

@@ -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())})
     # ....
     # ....
 
 
 ```
 ```