Commit 11f9a6d8 authored by Florent Fourcot's avatar Florent Fourcot

Fix xpath search

parent 391dc196
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment