Config

tinyCrawl.common.config module

Created on 2020/11/26 10:14

@author: Irvinfaith

@email: Irvinfaith@hotmail.com

class tinyCrawl.common.config.Config

基类:dict

set(key, value)

Set global parameters.

Now has three parameters could be set.

  • checkpoint_dir_path: Path of checkpoint file

  • is_save_log: Whether to save log files

  • log_path: Path of log files

参数
  • key (str) – Name of parameter

  • value (str or bool) – Value to be set

Returns: