You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
625 B
Markdown
25 lines
625 B
Markdown
5 years ago
|
# Wiki to HTML pages script
|
||
|
|
||
|
## Depencencies
|
||
|
* python3
|
||
|
* [pip]() Python library installed
|
||
|
* Install:
|
||
|
* `curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py`
|
||
|
* `python3 get-pip.py`
|
||
|
|
||
|
* [mwclient](https://mwclient.readthedocs.io/en/latest/index.html) Python library
|
||
|
* Install:
|
||
|
* `pip3 install mwclient`
|
||
|
|
||
|
## login.txt
|
||
|
`login.txt` is a secrete file (ignored by git) where you place you itch wiki username and password, in separate lines.
|
||
|
|
||
|
It is used to let mwclient access the wiki, since it is close for reading and writing.
|
||
|
```
|
||
|
myusername
|
||
|
mypassword
|
||
|
```
|
||
|
|
||
|
|
||
|
## Run
|
||
|
* `python3 download_imgs.py`
|