new: Completed support for migrating images to Tencent Cloud COS

This commit is contained in:
yv1ing
2024-12-16 12:24:28 +08:00
parent 522a1d203e
commit 52e023d5b1
10 changed files with 180 additions and 2 deletions

12
main.py Normal file
View 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)