change name of script publication2html.py --> ask2html.py

andre
Castro0o 5 years ago
parent d31c4aa483
commit 6337a577d5

@ -43,13 +43,13 @@ Run scripts together with `./run.sh`
* 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 publication2html.py` `python3 query2html.py`
* with ask API perform a query: * with ask API perform a query:
* help `python3 publication2html.py --help` * help `python3 query2html.py --help`
* run dry `python3 publication2html.py --dry` only printing request, not executing it * run dry `python3 query2html.py --dry` only printing request, not executing it
* build custom query with arguments `--conditions --printouts --sort --order` * build custom query with arguments `--conditions --printouts --sort --order`
* default query is: `[[File:+]][[Title::+]][[Part::+]][[Date::+]]|?Title|?Date|?Part|?Partof|sort=Date,Title,Part|order=asc,asc,asc` * default query is: `[[File:+]][[Title::+]][[Part::+]][[Date::+]]|?Title|?Date|?Part|?Partof|sort=Date,Title,Part|order=asc,asc,asc`
* custom query `python3 publication2html.py -c '[[Date::>=1970/01/01]][[Date::<=1979/12/31]]' -p '?Title|?Date|?Part|?Partof' -s 'Date,Title,Part' -o 'asc,asc,asc'` * custom query `python3 query2html.py -c '[[Date::>=1970/01/01]][[Date::<=1979/12/31]]' -p '?Title|?Date|?Part|?Partof' -s 'Date,Title,Part' -o 'asc,asc,asc'`
* The results, with the same Title, are stored * The results, with the same Title, are stored
* into 1 single HTML * into 1 single HTML

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
python3 download_imgs.py python3 download_imgs.py
python3 publication2html.py python3 query2html.py

Loading…
Cancel
Save