To run this project, you will need to add the following environment variables to
your .env file:
- App configs:
LOG_LEVEL: Log level.LOG_FILE_PATH: (Optional) File path to save logs. Default toscraper.log.
E.g:
# .env
LOG_LEVEL=info
You can also check out the file .env.example to see all required environment
variables.
-
This project uses pnpm as package manager:
npm install --global pnpm
Clone the project:
git clone https://github.com/v-bible/digivatlib-scraper.gitGo to the project directory:
cd digivatlib-scraperInstall dependencies:
pnpm installBuild the project:
pnpm buildUSAGE
digivatlib-scraper [--outDir value] [--height value] [--width value] [--toPdf] <args>...
digivatlib-scraper --help
digivatlib-scraper --version
Digital Vatican Library Scraper
FLAGS
[--outDir] Output directory. Default to "./output/<document-name>"
[--height] Image height. Default to 720 pixels
[--width] Image width
[--toPdf/--noToPdf] Convert downloaded images to a single PDF file
-h --help Print help information and exit
-v --version Print version information and exit
ARGUMENTS
args... List of document names to scrape from Digivatlib (e.g., "Cicognara.VI.319", "Borg.ill.19")Example:
pnpm build && ./dist/cli.js --outDir ./my-output --height 800 --toPdf Cicognara.VI.319 Borg.ill.19Contributions are always welcome!
Please read the contribution guidelines.
Please read the Code of Conduct.
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License.
See the LICENSE.md file for full details.
Duong Vinh - @duckymomo20012 - tienvinh.duong4@gmail.com
Project Link: https://github.com/v-bible/digivatlib-scraper.
