diff --git a/requirements.txt b/requirements.txt index 64e3019..626f87e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ pytypecho==2.1.0 pymysql==1.0.2 python-dotenv==0.21.0 +requests==2.31.0 \ No newline at end of file diff --git a/transfer_md/transfer.py b/transfer_md/transfer.py index b8af70b..b5de115 100644 --- a/transfer_md/transfer.py +++ b/transfer_md/transfer.py @@ -3,7 +3,7 @@ import re import shutil import uuid from upload_img import upload_image - +from download_img import download_image def extract_image_paths(content): """ diff --git a/transfer_md/upload_img.py b/transfer_md/upload_img.py index 9c5ea88..4751769 100644 --- a/transfer_md/upload_img.py +++ b/transfer_md/upload_img.py @@ -1,6 +1,5 @@ import requests - def upload_image(img_path: str) -> str: """ 上传本地图片到 easyimage 图床,并返回图片的公网地址。