Fix #1447 : Get videos titles in h1
Signed-off-by: Loic Bontonou <loic.bontonou@gmail.com>
This commit is contained in:
parent
5e1f313efb
commit
bd1688d72f
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class IndexPage(Page):
|
|||
def iter_videos(self):
|
||||
videos = self.document.getroot().cssselect("div[class=bloc-contenu-8]")
|
||||
for div in videos:
|
||||
title = self.parser.select(div, 'h1 a', 1).text_content().replace('"', '')
|
||||
title = self.parser.select(div, 'h1', 1).text_content().replace(' ', ' ')
|
||||
m = re.match(r'/contenu.php\?id=(.*)', div.find('a').attrib['href'])
|
||||
_id = ''
|
||||
if m:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue