mirror of
https://github.com/yv1ing/ezMove.git
synced 2025-09-16 14:51:01 +08:00
new: Completed support for migrating images to Tencent Cloud COS
This commit is contained in:
12
main.py
Normal file
12
main.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from dotenv import load_dotenv
|
||||
from markdown import *
|
||||
|
||||
load_dotenv()
|
||||
new_pic_bed = os.getenv('NEW_PIC_BED')
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Fill in the directory of Markdown files waiting to be migrated here
|
||||
markdown_files = find_files('')
|
||||
|
||||
for markdown_file in markdown_files:
|
||||
replace_pic_bed(markdown_file, new_pic_bed)
|
||||
Reference in New Issue
Block a user