boursorama and bp: convert labels to unicode
This commit is contained in:
parent
30a0f916bf
commit
38da7e2565
2 changed files with 4 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ from decimal import Decimal
|
|||
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
|
||||
class AccountsList(BasePage):
|
||||
|
|
@ -42,7 +43,7 @@ class AccountsList(BasePage):
|
|||
|
||||
elif td.attrib.get('class', '') == 'account-name':
|
||||
a = td.find('a')
|
||||
account.label = a.text
|
||||
account.label = to_unicode(a.text)
|
||||
account._link_id = a.get('href', '')
|
||||
|
||||
elif td.attrib.get('class', '') == 'account-number':
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ from decimal import Decimal
|
|||
|
||||
from weboob.capabilities.bank import Account, AccountNotFound
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
|
||||
__all__ = ['AccountList']
|
||||
|
|
@ -48,7 +49,7 @@ class AccountList(BasePage):
|
|||
for line in lines:
|
||||
account = Account()
|
||||
tmp = line.xpath("./td//a")[0]
|
||||
account.label = tmp.text
|
||||
account.label = to_unicode(tmp.text)
|
||||
account._link_id = tmp.get("href")
|
||||
|
||||
tmp = line.xpath("./td/span/strong")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue