Get renew date on freemobile

This commit is contained in:
Florent 2013-01-08 20:52:30 +01:00
commit e35c7812ea
2 changed files with 17 additions and 1 deletions

View file

@ -59,7 +59,11 @@ class Freemobile(BaseBrowser):
if not self.is_on_page(HomePage):
self.location('/moncompte/index.php?page=home')
return self.page.get_list()
subscriptions = self.page.get_list()
self.location('/moncompte/index.php?page=suiviconso')
for subscription in subscriptions:
subscription.renewdate = self.page.get_renew_date(subscription)
yield subscription
def get_subscription(self, id):
assert isinstance(id, basestring)