fallback on mobile website if there is no CCPTE input field on homepage
This commit is contained in:
parent
5c718184c6
commit
a46f4cfdff
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:
|
if text is None or not 'CCPTE' in text:
|
||||||
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