Fix getting login
Somtime "o=", sometime "l="...
This commit is contained in:
parent
681b83e4b3
commit
e04bd9c8eb
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"]'):
|
||||
login = divglobal.xpath('//div[@class="acceuil_btn"]/a')[0].attrib['href'].split('l=')[1]
|
||||
login = divglobal.xpath('//div[@class="acceuil_btn"]/a')[0].attrib['href'].split('=').pop()
|
||||
divabo = divglobal.xpath('div[@class="idAbonne pointer"]')[0]
|
||||
owner = unicode(divabo.xpath('p')[0].text.replace(' - ', ''))
|
||||
phone = unicode(divabo.xpath('p/span')[0].text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue