mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-03-23 04:27:33 +08:00
fix: issue #22
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# account_config.py
|
||||
import os
|
||||
|
||||
PHONE_LIST = [
|
||||
"13012345671",
|
||||
@@ -22,6 +23,5 @@ IP_PROXY_LIST = [
|
||||
]
|
||||
|
||||
IP_PROXY_PROTOCOL = "http://"
|
||||
IP_PROXY_USER = "xxxx"
|
||||
IP_PROXY_PASSWORD = "xxxx"
|
||||
|
||||
IP_PROXY_USER = os.getenv("IP_PROXY_USER", "test")
|
||||
IP_PROXY_PASSWORD = os.getenv("IP_PROXY_PASSWORD", "123456")
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import os
|
||||
|
||||
# redis config
|
||||
REDIS_DB_HOST = "redis://127.0.0.1" # your redis host
|
||||
REDIS_DB_PWD = "123456" # your redis password
|
||||
REDIS_DB_HOST = "127.0.0.1" # your redis host
|
||||
REDIS_DB_PWD = os.getenv("REDIS_DB_PWD", "123456") # your redis password
|
||||
|
||||
# mysql config
|
||||
RELATION_DB_URL = "mysql://root:youdbpassword@localhost:3306/media_crawler"
|
||||
RELATION_DB_PWD = os.getenv("RELATION_DB_PWD", "123456") # your relation db password
|
||||
RELATION_DB_URL = f"mysql://root:{RELATION_DB_PWD}@localhost:3306/media_crawler"
|
||||
|
||||
# save data to database option
|
||||
IS_SAVED_DATABASED = True # if you want to save data to database, set True
|
||||
|
||||
Reference in New Issue
Block a user