forked from NanmiCoder/MediaCrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4c5ed5
commit b71f0e8
Showing
7 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
httpx==0.24.0 | ||
Pillow==9.5.0 | ||
playwright==1.33.0 | ||
aioredis==2.0.1 | ||
tenacity==8.2.2 | ||
tornado==6.3.2 | ||
PyExecJS==1.5.1 | ||
opencv-python==4.7.0.72 | ||
tortoise-orm[asyncmy]==0.19.3 | ||
aerich==0.7.2 | ||
numpy~=1.24.4 | ||
redis~=4.6.0 |