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:

  1. Command-line parameters

  2. Environment variables

  3. Configuration file

  4. 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.