Python scrapy.item 模块,Field() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用scrapy.item.Field()

项目:FIFA-Player-Ratings    作者:HashirZahir    | 项目源码 | 文件源码
def __setitem__(self, key, value):
        if key not in self.fields:
            self.fields[key] = Field()  #if key does not exist, then create a new one in self.fields (ie dynamic list)
        self._values[key] = value