Rename downloader script and update docs
This commit is contained in:
@@ -18,7 +18,7 @@ Python 3.10 or newer is recommended. The script uses only the Python standard li
|
||||
## Basic Usage
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "https://www.digitalniknihovna.cz/mzk/view/uuid:0abf59c0-794e-11e4-8ce5-005056827e52?page=uuid:e57e2820-8547-11e4-a321-5ef3fc9bb22f" \
|
||||
python3 download_pdf.py "https://www.digitalniknihovna.cz/mzk/view/uuid:0abf59c0-794e-11e4-8ce5-005056827e52?page=uuid:e57e2820-8547-11e4-a321-5ef3fc9bb22f" \
|
||||
--output-dir pages \
|
||||
--pdf book.pdf
|
||||
```
|
||||
@@ -26,7 +26,7 @@ python3 download_kramerius_pdf.py "https://www.digitalniknihovna.cz/mzk/view/uui
|
||||
To test only the first few pages:
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "URL_HERE" \
|
||||
python3 download_pdf.py "URL_HERE" \
|
||||
--limit 20 \
|
||||
--output-dir test_pages \
|
||||
--pdf test.pdf
|
||||
@@ -46,7 +46,7 @@ Client: www.digitalniknihovna.cz
|
||||
Use either `--auth-token`:
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "URL_HERE" \
|
||||
python3 download_pdf.py "URL_HERE" \
|
||||
--auth-token "PASTE_TOKEN_HERE" \
|
||||
--output-dir pages \
|
||||
--pdf book.pdf
|
||||
@@ -55,7 +55,7 @@ python3 download_kramerius_pdf.py "URL_HERE" \
|
||||
Or put the token in `auth-token.txt` and use `--auth-file`:
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "URL_HERE" \
|
||||
python3 download_pdf.py "URL_HERE" \
|
||||
--auth-file auth-token.txt \
|
||||
--output-dir pages \
|
||||
--pdf book.pdf
|
||||
@@ -103,7 +103,7 @@ For example, a URL containing `/mzk/view/...` uses `auth.token.mzk`.
|
||||
Paste the document URL directly:
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "https://www.digitalniknihovna.cz/LIBRARY_CODE/view/uuid:..." \
|
||||
python3 download_pdf.py "https://www.digitalniknihovna.cz/LIBRARY_CODE/view/uuid:..." \
|
||||
--auth-file auth-token.txt \
|
||||
--output-dir pages \
|
||||
--pdf book.pdf
|
||||
@@ -112,7 +112,7 @@ python3 download_kramerius_pdf.py "https://www.digitalniknihovna.cz/LIBRARY_CODE
|
||||
The script reads the library code from the URL and tries to resolve the correct Kramerius API backend automatically. If that fails, pass the API backend manually:
|
||||
|
||||
```bash
|
||||
python3 download_kramerius_pdf.py "URL_HERE" \
|
||||
python3 download_pdf.py "URL_HERE" \
|
||||
--library mzk \
|
||||
--base-url "https://api.kramerius.mzk.cz" \
|
||||
--auth-file auth-token.txt \
|
||||
|
||||
Reference in New Issue
Block a user