Better selection of the div (dailymotion)
This commit is contained in:
parent
dca7f92c49
commit
3c9b1b7f53
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue