From 81301f3a76f741cb8f6db5aae75e1bb146cead5b Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Wed, 19 May 2021 21:41:17 +0200 Subject: [PATCH] Rename the ilias crawler to ilias web crawler --- PFERD/crawlers/__init__.py | 6 +++--- PFERD/crawlers/ilias/__init__.py | 4 ++-- .../{kit_web_ilias_crawler.py => kit_ilias_web_crawler.py} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename PFERD/crawlers/ilias/{kit_web_ilias_crawler.py => kit_ilias_web_crawler.py} (99%) diff --git a/PFERD/crawlers/__init__.py b/PFERD/crawlers/__init__.py index 72d6798..dc7dfa0 100644 --- a/PFERD/crawlers/__init__.py +++ b/PFERD/crawlers/__init__.py @@ -4,7 +4,7 @@ from typing import Callable, Dict from ..authenticator import Authenticator from ..config import Config from ..crawler import Crawler -from .ilias import KitIliasCrawler, KitIliasCrawlerSection +from .ilias import KitIliasWebCrawler, KitIliasWebCrawlerSection from .local import LocalCrawler, LocalCrawlerSection CrawlerConstructor = Callable[[ @@ -17,6 +17,6 @@ CrawlerConstructor = Callable[[ CRAWLERS: Dict[str, CrawlerConstructor] = { "local": lambda n, s, c, a: LocalCrawler(n, LocalCrawlerSection(s), c), - "kit-ilias": lambda n, s, c, a: - KitIliasCrawler(n, KitIliasCrawlerSection(s), c, a), + "kit-ilias-web": lambda n, s, c, a: + KitIliasWebCrawler(n, KitIliasWebCrawlerSection(s), c, a), } diff --git a/PFERD/crawlers/ilias/__init__.py b/PFERD/crawlers/ilias/__init__.py index 15b8d5d..26618a8 100644 --- a/PFERD/crawlers/ilias/__init__.py +++ b/PFERD/crawlers/ilias/__init__.py @@ -1,3 +1,3 @@ -from .kit_web_ilias_crawler import KitIliasCrawler, KitIliasCrawlerSection +from .kit_ilias_web_crawler import KitIliasWebCrawler, KitIliasWebCrawlerSection -__all__ = ["KitIliasCrawler", "KitIliasCrawlerSection"] +__all__ = ["KitIliasWebCrawler", "KitIliasWebCrawlerSection"] diff --git a/PFERD/crawlers/ilias/kit_web_ilias_crawler.py b/PFERD/crawlers/ilias/kit_ilias_web_crawler.py similarity index 99% rename from PFERD/crawlers/ilias/kit_web_ilias_crawler.py rename to PFERD/crawlers/ilias/kit_ilias_web_crawler.py index 46eb662..9c7793c 100644 --- a/PFERD/crawlers/ilias/kit_web_ilias_crawler.py +++ b/PFERD/crawlers/ilias/kit_ilias_web_crawler.py @@ -19,7 +19,7 @@ from .kit_ilias_html import IliasElementType, IliasPage, IliasPageElement TargetType = Union[str, int] -class KitIliasCrawlerSection(CrawlerSection): +class KitIliasWebCrawlerSection(CrawlerSection): def target(self) -> TargetType: target = self.s.get("target") @@ -64,11 +64,11 @@ _DIRECTORY_PAGES: Set[IliasElementType] = set([ ]) -class KitIliasCrawler(HttpCrawler): +class KitIliasWebCrawler(HttpCrawler): def __init__( self, name: str, - section: KitIliasCrawlerSection, + section: KitIliasWebCrawlerSection, config: Config, authenticators: Dict[str, Authenticator] ):