You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using a Configuration File](#using-a-configuration-file)
122
-
-[Combining Both](#combining-both)
123
125
-[Configuration](#configuration)
124
126
-[Running Tests](#running-tests)
125
127
@@ -136,7 +138,25 @@ Main features:
136
138
137
139
I wanted to migrate thousands of notes from Youdao Cloud Notes to Obsidian. Thanks to [youdaonote-pull](https://github.com/DeppWang/youdaonote-pull) for providing a full export feature for Youdao Cloud Notes, I quickly exported all notes to a local folder. However, since the images in the thousands of notes were also kept locally, it was inconvenient for mobile use. Therefore, I wanted to upload the images to an image hosting service and use markdown links in the notes. So, I wrote a program to batch convert and upload images.
138
140
139
-
### Installation
141
+
## Installation by Executable Package
142
+
143
+
Download the installation package for Windows or macOS, unzip it, and configure the `config.json` file. Then run the program.
144
+
1. Download the installation package
145
+
2. Extract it
146
+
3. Configure the `config.json` file
147
+
- Set `vault_directory` to the path of your notes folder
148
+
- Set `upload_url` to the URL of your PicList/PicGo service
149
+
- Set `base_url` to the URL of your image hosting service
150
+
- Set `cleanup` to determine whether to clean up local images
151
+
4. Run the program
152
+
- Windows users can double-click `upload-images.exe` to run it.
153
+
- macOS users can run `./upload-images` in the terminal.
154
+
155
+
### Using Python for Running or Development
156
+
157
+
If the executable package does not meet your needs, you can use Python to run or develop.
158
+
159
+
#### Installation
140
160
141
161
Prerequisites: Python, Poetry
142
162
@@ -146,33 +166,33 @@ Run the following command to install dependencies and set up the environment:
146
166
poetry install
147
167
```
148
168
149
-
### Usage
169
+
####Usage
150
170
151
171
You can run the script with command-line arguments or specify a configuration file.
Before running the tests, edit a `config.json` file in the project root directory to include your specific configuration values. You can use the provided `config.sample.json` as a template:
178
198
@@ -190,7 +210,7 @@ Before running the tests, edit a `config.json` file in the project root director
190
210
191
211
Ensure that all paths and URLs are correctly set according to your environment and requirements. This configuration file is crucial for the script to function correctly, as it dictates where to find the Markdown files, where to upload the images, and how to handle the images post-upload.
0 commit comments