implement ICapVideoProvider.get_video()
This commit is contained in:
parent
ecb21905a4
commit
90396044b5
4 changed files with 58 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ from weboob.tools.browser import BasePage
|
|||
from weboob.capabilities.video import Video
|
||||
|
||||
class ResultsPage(BasePage):
|
||||
WATCH_RE = re.compile('/watch?v=(\w+)')
|
||||
WATCH_RE = re.compile('/watch\?v=(\w+)')
|
||||
def iter_videos(self):
|
||||
for div in self.document.getroot().cssselect("div[class^=video-entry]"):
|
||||
a = div.find('a')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue