correctly handle wrong credentials

This commit is contained in:
Romain Bignon 2015-07-25 19:08:43 +02:00
commit 23f86ff116

View file

@ -30,6 +30,12 @@ class GetID(Filter):
class HomePage(BadUTF8Page):
def is_here(self):
if len(self.doc.xpath('//form[@id="form_connect"]')) > 0:
return False
return True
@method
class get_list(ListElement):
item_xpath = '//div[@class="abonne"]'