diff --git a/config.py b/config.py index bc2622e..8a7b618 100644 --- a/config.py +++ b/config.py @@ -39,4 +39,7 @@ class Config(ComboParser): self.add_item(section, 'max_fail', int, 5, 'number of fails after which an url is considered dead', False) self.add_item(section, 'database', str, 'proxies.sqlite', 'filename of database', True) + section = 'scraper' + self.add_item(section, 'debug', bool, False, 'scraper: whether to print additional debug info', False) + self.aparser.add_argument("--file", help="import a single file containing proxy addrs", type=str, default='', required=False)