Configuration
Web Novel Scraper can be configured using command-line parameters, environment variables, or a configuration file.
Configuration Priority
When the same setting is defined in multiple places, the following priority order is used:
Command-line parameters
Environment variables
Configuration file
Default values
For example, if a timeout is defined in all three locations, the value provided through the command line will be used.
Command-Line Parameters
Example:
web-novel-scraper show-novel-info \
-t "My Novel" \
--request-timeout 60
Environment Variables
Example:
export SCRAPER_REQUEST_TIMEOUT=60
Configuration File
Example:
request_config:
request_timeout: 60
Using a Configuration File
web-novel-scraper \
--config-file scraper.yaml \
show-novel-info \
-t "My Novel"
Configuration Reference
See Config Reference for a complete list of available configuration options.