Merge pull request #2781 from crasker/patch-1

use suggest method instead of DEPRECATED one
This commit is contained in:
Mikhail Korobov 2017-06-14 03:29:45 +05:00 committed by GitHub
commit 5aebdac45d
1 changed files with 1 additions and 1 deletions

View File

@ -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/