Ajout de l'URL du billet descriptif associé à la vidéo

master
Yohann Dedy 2018-05-12 04:06:52 +02:00
parent b0f57b9a37
commit f1aaf196c6
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class GrabvideodataSpider(scrapy.Spider):
'sous-titre' : page.css('h1 span::text').extract_first(), 'sous-titre' : page.css('h1 span::text').extract_first(),
'description' : page.css('.biographies p').extract(), 'description' : page.css('.biographies p').extract(),
'videoSrcUrl' : page.css('iframe::attr(src)').extract_first(), 'videoSrcUrl' : page.css('iframe::attr(src)').extract_first(),
'articleUrl' : response.url,
'tags' : page.css('.tag::text').extract() 'tags' : page.css('.tag::text').extract()
} }