mirror of https://github.com/scrapy/scrapy.git
Merge pull request #2659 from clarksun/patch-1
[MRG+1] Update item-pipeline.rst
This commit is contained in:
commit
8b9b642952
|
|
@ -156,7 +156,7 @@ method and how to clean up the resources properly.::
|
|||
self.client.close()
|
||||
|
||||
def process_item(self, item, spider):
|
||||
self.db[self.collection_name].insert(dict(item))
|
||||
self.db[self.collection_name].insert_one(dict(item))
|
||||
return item
|
||||
|
||||
.. _MongoDB: https://www.mongodb.org/
|
||||
|
|
|
|||
Loading…
Reference in New Issue