2023-07-30 12:43:02 +00:00
|
|
|
import os
|
|
|
|
|
2023-07-24 12:59:43 +00:00
|
|
|
# redis config
|
2023-07-30 12:43:02 +00:00
|
|
|
REDIS_DB_HOST = "127.0.0.1" # your redis host
|
|
|
|
REDIS_DB_PWD = os.getenv("REDIS_DB_PWD", "123456") # your redis password
|
2023-07-24 12:59:43 +00:00
|
|
|
|
|
|
|
# mysql config
|
2023-07-30 12:43:02 +00:00
|
|
|
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"
|
2023-07-24 12:59:43 +00:00
|
|
|
|
|
|
|
# save data to database option
|
2023-11-26 13:43:39 +00:00
|
|
|
IS_SAVED_DATABASED = True # if you want to save data to database, set True
|