pferd/PFERD/crawlers/__init__.py
2021-05-10 23:47:46 +02:00

11 lines
348 B
Python

from configparser import SectionProxy
from typing import Callable, Dict
from ..config import Config
from ..crawler import Crawler, CrawlerSection
from .local import LocalCrawler, LocalCrawlerSection
CRAWLERS: Dict[str, Callable[[str, Config, SectionProxy], Crawler]] = {
"local": lambda n, c, s: LocalCrawler(n, c, LocalCrawlerSection(s)),
}