mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-06-02 16:07:25 +08:00
feat: 添加静态代理方式
This commit is contained in:
@@ -34,10 +34,14 @@ CRAWLER_TYPE = (
|
||||
ENABLE_IP_PROXY = False
|
||||
|
||||
# Number of proxy IP pools
|
||||
IP_PROXY_POOL_COUNT = 2
|
||||
IP_PROXY_POOL_COUNT = 1
|
||||
|
||||
# Proxy IP provider name
|
||||
IP_PROXY_PROVIDER_NAME = "kuaidaili" # kuaidaili | wandouhttp
|
||||
IP_PROXY_PROVIDER_NAME = "static" # kuaidaili | wandouhttp | static
|
||||
|
||||
# Static proxy configuration (used when IP_PROXY_PROVIDER_NAME is set to "static")
|
||||
# Format: "http://your_home_domain:port" or "http://user:password@your_home_domain:port"
|
||||
STATIC_PROXY_URL = "http://your_home_domain:port"
|
||||
|
||||
# Setting to True will not open the browser (headless browser)
|
||||
# Setting False will open a browser
|
||||
|
||||
Reference in New Issue
Block a user