Better selection of the div (dailymotion)

This commit is contained in:
Florent 2014-04-02 14:18:39 +02:00
commit 3c9b1b7f53

View file

@ -38,7 +38,7 @@ __all__ = ['IndexPage', 'VideoPage', 'KidsVideoPage']
class IndexPage(BasePage):
def iter_videos(self):
for div in self.parser.select(self.document.getroot(), 'div.sd_video_griditem'):
for div in self.parser.select(self.document.getroot(), 'div.pl_videos_videolistitem'):
smalldiv = self.parser.select(div, 'div.sd_video_previewtwig', 1)
_id = smalldiv.attrib.get('data-id', None)