Coverage for src/crawler/by_source/numdam_crawler.py: 0%
13 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-20 09:03 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-20 09:03 +0000
1from crawler.base_crawler import BaseCollectionCrawler
4class NumdamCrawler(BaseCollectionCrawler):
5 """
6 We do not crawl Numdam collections, but the NumdamCrawler is used to have access to
7 get_or_create_source and get_or_create_period
8 """
10 source_name = "Numdam"
11 source_domain = "NUMDAM"
12 source_website = "http://www.numdam.org"
13 periode_begin = 0
14 periode_end = 0
16 def __init__(self, *args, **kwargs):
17 super().__init__(*args, **kwargs)
19 self.source = self.get_or_create_source()
20 self.periode = self.get_or_create_periode()
22 def crawl_collection(self, col_only=False):
23 return []