#初始化方法
def __init__(self):
self.f=open('yunbtv.json','a')
def process_item(self, item, spider):
data=json.dumps(dict(item),ensure_ascii=False)+'\n'
self.f.write(data)
def close_spider(self,spider):
self.f.close()
#初始化方法
def __init__(self):
self.f=open('yunbtv.json','a')
def process_item(self, item, spider):
data=json.dumps(dict(item),ensure_ascii=False)+'\n'
self.f.write(data)
def close_spider(self,spider):
self.f.close()