README + change script name

andre
Castro0o 4 years ago
parent 5f48f9f364
commit 89e23cd7cd

@ -32,15 +32,25 @@ mypassword
## Run ## Run
* all toguether `./run.sh` * all toguether `./run.sh`
* `python3 download_imgs.py` `python3 download_imgs.py`
* Downloads all images from wiki to `images/` directory * Downloads all images from wiki to `images/` directory
* and stores each image's metadata to `images.json` * and stores each image's metadata to `images.json`
* `python3 images2html.py`
* cycles through the items in `images.json` `python3 publication2html.py`
* querying the File: wiki for image * with ask API perform a query:
* if it contains essential metadata: Title, Page, Total Pages * default `[[File:+]][[Title::+]][[Date::+]]|?Title|?Date|?Part|sort=Date,Title,Part|order=asc,asc,asc`
* retrieves its text content * The results, with the same Title, are stored
* generates a HTML page from it * into 1 single HTML
* saves page onto `static_html/` directory * sorted by Part
OR
`python3 images2html.py`
* cycles through the items in `images.json`
* querying the File: wiki for image
* if it contains essential metadata: Title, Page, Total Pages
* retrieves its text content
* generates a HTML page from it
* saves page onto `static_html/` directory
## TODO: Work on making an overview! ## TODO: Work on making an overview!
Loading…
Cancel
Save