diff --git a/modules/cragr/web/pages.py b/modules/cragr/web/pages.py index 3bab5c8c..4e824feb 100644 --- a/modules/cragr/web/pages.py +++ b/modules/cragr/web/pages.py @@ -32,7 +32,7 @@ class HomePage(BasePage): def get_post_url(self): for script in self.document.xpath('//script'): text = script.text - if text is None: + if text is None or not 'CCPTE' in text: continue m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)