This commit is contained in:
Wojtek 2019-12-11 19:13:33 +00:00
parent 993ec57cf1
commit f6a9702b3a
2 changed files with 5 additions and 1 deletions

View File

@ -35,4 +35,7 @@ class FinaSpider(CrawlSpider):
item['title'] = response.xpath('//*[@id="block-fnfilm-fnfilm"]/div/div[1]/div/div/span/text()').get() item['title'] = response.xpath('//*[@id="block-fnfilm-fnfilm"]/div/div[1]/div/div/span/text()').get()
item['mp4'] = getMp4(response.xpath('//*[@id="block-fnfilm-fnfilm"]/div/div[2]/div/script/text()').get()) item['mp4'] = getMp4(response.xpath('//*[@id="block-fnfilm-fnfilm"]/div/div[2]/div/script/text()').get())
item['url'] = response.url item['url'] = response.url
#TODO
#description:
return item return item

View File

@ -3,4 +3,5 @@ from scrapy.item import Item, Field
class MovieItem(Item): class MovieItem(Item):
url = Field() url = Field()
title = Field() title = Field()
mp4 = Field() mp4 = Field()
#description = Field()