Implement output directory

This commit is contained in:
Joscha
2021-05-05 18:08:34 +02:00
parent fde811ae5a
commit bbfdadc463
4 changed files with 381 additions and 12 deletions

View File

@ -25,11 +25,8 @@ class Pferd:
crawler_constructor = CRAWLERS.get(crawler_type)
if crawler_constructor is None:
abort = True
if crawler_type is None:
print("[red]Error: No type")
else:
t = escape(repr(crawler_type))
print(f"[red]Error: Unknown type {t}")
t = escape(repr(crawler_type))
print(f"[red]Error: Unknown type {t}")
continue
crawler = crawler_constructor(name, self._config, section)