Skip to content

Configure Application

Kiril Murschel edited this page Feb 7, 2023 · 7 revisions

Application configuration in config.json

In the src/ folder you will find our configuration file: config.json

"download_dir": "./downloads"
"max_products": 5
"log_level": "DEBUG"

choose log_level between

["DEBUG", "INFO", "IMPORTANT", "WARNING", "ERROR", "CRITICAL"]

This config json als contains and a list of vendors. Example:

{
      "name": "ABB", # name of Vendor
      "class_name": "ABBScraper", # name of Scraper Class
      "active": true, # scrape or not scrape
      "interval": "0", #  days as int
      "last_update": "2023-02-01", # last run as yyyy-mm-dd
      "next_update": "2023-02-01", # next run as yyyy-mm-dd
      "max_products": null # limit products to scrape as int
}
Clone this wiki locally