Fix xpath search
This commit is contained in:
parent
391dc19666
commit
11f9a6d8a1
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class HomePage(BasePage):
|
|||
|
||||
def get_list(self):
|
||||
for divglobal in self.document.xpath('//div[@class="abonne"]'):
|
||||
for link in divglobal.xpath('//div[@class="acceuil_btn"]/a'):
|
||||
for link in divglobal.xpath('.//div[@class="acceuil_btn"]/a'):
|
||||
login = link.attrib['href'].split('=').pop()
|
||||
if login.isdigit():
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue