Bug fix to use web site instead of mobile website for ca-centrest, and probably others (Fix #1035)
Signed-off-by: Kitof <git@kitof.net> Signed-off-by: Romain Bignon <romain@budget-insight.com>
This commit is contained in:
parent
e659e335ae
commit
e3485fb185
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class HomePage(BasePage):
|
||||||
def get_post_url(self):
|
def get_post_url(self):
|
||||||
for script in self.document.xpath('//script'):
|
for script in self.document.xpath('//script'):
|
||||||
text = script.text
|
text = script.text
|
||||||
if text is None or not 'CCPTE' in text:
|
if text is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)
|
m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue