correctly handle wrong credentials
This commit is contained in:
parent
a9119fd665
commit
23f86ff116
1 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,12 @@ class GetID(Filter):
|
||||||
|
|
||||||
|
|
||||||
class HomePage(BadUTF8Page):
|
class HomePage(BadUTF8Page):
|
||||||
|
def is_here(self):
|
||||||
|
if len(self.doc.xpath('//form[@id="form_connect"]')) > 0:
|
||||||
|
return False
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
@method
|
@method
|
||||||
class get_list(ListElement):
|
class get_list(ListElement):
|
||||||
item_xpath = '//div[@class="abonne"]'
|
item_xpath = '//div[@class="abonne"]'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue