add decorator pagination
This commit is contained in:
parent
9a3258419d
commit
5f59c130b3
3 changed files with 44 additions and 3 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
|
||||
from weboob.tools.browser2 import HTMLPage
|
||||
from weboob.tools.browser2.page import ListElement, method, ItemElement
|
||||
from weboob.tools.browser2.page import ListElement, method, ItemElement, pagination
|
||||
from weboob.tools.browser2.filters import Link, CleanText, Duration, Regexp
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.capabilities.image import BaseImage
|
||||
|
|
@ -30,6 +30,7 @@ __all__ = ['IndexPage']
|
|||
|
||||
|
||||
class IndexPage(HTMLPage):
|
||||
@pagination
|
||||
@method
|
||||
class iter_videos(ListElement):
|
||||
item_xpath = '//span[@id="miniatura"]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue