Fix freemobile for name with a dash
Always get the last element of the list close #915
This commit is contained in:
parent
ce3d6c4a2c
commit
289ad85ae4
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class DetailsPage(BasePage):
|
||||||
self.datebills = []
|
self.datebills = []
|
||||||
for div in self.document.xpath('//div[@class="infosLigneDetail pointer"]'):
|
for div in self.document.xpath('//div[@class="infosLigneDetail pointer"]'):
|
||||||
phonenumber = div.text
|
phonenumber = div.text
|
||||||
phonenumber = phonenumber.split("-")[2].strip()
|
phonenumber = phonenumber.split("-")[-1].strip()
|
||||||
virtualnumber = div.attrib['onclick'].split('(')[1][1]
|
virtualnumber = div.attrib['onclick'].split('(')[1][1]
|
||||||
self.details['num' + str(phonenumber)] = virtualnumber
|
self.details['num' + str(phonenumber)] = virtualnumber
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue