I want to add a field to scrapy.Item so that it's an array:
class MyItem(scrapy.Item):
field1 = scrapy.Field()
field2 = scrapy.Field()
field3_array = ???
How can I do that?
I want to add a field to scrapy.Item so that it's an array:
class MyItem(scrapy.Item):
field1 = scrapy.Field()
field2 = scrapy.Field()
field3_array = ???
How can I do that?
You just create a filed
But while parsing the scraped items do like this
in this way you can achieve this.
Have a look