Skip to content
/ ezMove Public

Script for batch migration of Markdown images to image hosting

License

Notifications You must be signed in to change notification settings

yv1ing/ezMove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ezMove

This is a script for batch migration of Markdown images to image hosting.

Quick Start

Step 0

Install required dependencies.

pip install -r .\requirements.txt

Step 1

Fill in the configuration information of the image hosting in the .env file.

For example (use Tencent COS):

NEW_PIC_BED="COS"

COS_SECRET_ID=""
COS_SECRET_KEY=""
COS_BUCKET=""
COS_REGION=""
COS_SAVE_PATH=""

Step 2

Fill in the Markdown file directory of the image hosting service to be migrated in main.py

For example:

# Fill in the directory of Markdown files waiting to be migrated here
markdown_files = find_files('./my_blogs')

Step 3

Run main.py and have a cup of coffee while waiting for the program to finish running.

python3 main.py

Todo

  • Support Tencent Cloud COS
  • Support Alibaba Cloud OSS
  • Support Qiniu Cloud Image Hosting
  • ...

About

Script for batch migration of Markdown images to image hosting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages