L'importateur de la ville de Clermont connait ses urls
This commit is contained in:
parent
50579a6597
commit
530dbfc8e4
@ -10,9 +10,15 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class CExtractor(Extractor):
|
class CExtractor(Extractor):
|
||||||
|
|
||||||
|
patternEvent = r'^https://associations\.clermont-ferrand\.fr/evenement/([\w\-]+)'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
|
def is_known_url(url):
|
||||||
|
return re.match(CExtractor.patternEvent, url) is not None
|
||||||
|
|
||||||
def extract(
|
def extract(
|
||||||
self,
|
self,
|
||||||
content,
|
content,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user