Skip to content

Commit c58d26a

Browse files
committed
update
1 parent eea3891 commit c58d26a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

_posts/2020-05-06-THBWikiMultiUploadIntro.MD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A simple python tool to upload files to THBWiki
1919
Note that this tool will upload every file in the directory.
2020
## Requirements
2121
just need module [Requests](https://github.com/psf/requests)
22-
```shell script
22+
```
2323
pip install requests
2424
```
2525

@@ -38,26 +38,29 @@ Since you need to upload files, you will need at least those permissions:
3838
After creating the bot, just create a **BotToken.txt** in the **main.py** file's
3939
same directory.
4040
The **BotToken.txt** file should be encoded in UTF-8 and like this:
41-
```text
41+
```
4242
botusername=XXXXX
4343
botpassword=XXXXX
4444
```
45+
4546
Then you can run the python file.
4647
## Run
4748
Run the python file.
4849
If you set the bot correctly, you will see the terminal shows:
49-
```shell script
50+
```
5051
Login Success
5152
```
53+
5254
Then you need to input the directory path that contains files you need to upload.
5355
The program will upload **everything** in the directory.
5456

5557
After inputting the directory, you can input the upload comment for all files
5658
onetime, or you can just leave it blank. It also supports **WikiText**.
5759
For example:
58-
```text
60+
```
5961
[[分类:poprication]][[分类:周边图片]]
6062
```
63+
6164
Terminal will show the status of each file.
6265
## Uploading Example
6366
![example](https://wx1.sinaimg.cn/large/9bd2f91fgy1gefprmju36j20td07babd.jpg)

0 commit comments

Comments
 (0)