mirror of https://github.com/scrapy/scrapy.git
Merge pull request #2781 from crasker/patch-1
use suggest method instead of DEPRECATED one
This commit is contained in:
commit
5aebdac45d
|
|
@ -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