mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Properly load crawler config
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
from configparser import SectionProxy
|
||||
from typing import Callable, Dict
|
||||
|
||||
from ..config import Config
|
||||
from ..crawler import Crawler, CrawlerSection
|
||||
from .dummy import DummyCrawler
|
||||
|
||||
CRAWLERS = {
|
||||
"dummy": DummyCrawler,
|
||||
CRAWLERS: Dict[str, Callable[[str, Config, SectionProxy], Crawler]] = {
|
||||
"dummy": lambda n, c, s: DummyCrawler(n, c, CrawlerSection(s)),
|
||||
}
|
||||
|
Reference in New Issue
Block a user