Final JSON will be :
"address": ----,
"state": ----,
year: {
"first": ----,
"second": {
"basic": ----,
"Information": ----,
}
},
I want to create my items.py like (just example):
class Item(scrapy.Item):
address = scrapy.Field()
state = scrapy.Field()
year = scrapy.Field(first), scrapy.Field(second)
class first(scrapy.Item):
amounts = scrapy.Field()
class second(scrapy.Item):
basic = scrapy.Field()
information = scrapy.Field()
How to implement this , already checked this https://doc.scrapy.org/en/latest/topics/items.html#extending-items
how to implement nested item in scrapy?
but there are no clue about this concept ... any suggestion?
This way you can do this:
Let me give you example,