提交 5aebdac4 编写于 作者: M Mikhail Korobov 提交者: GitHub

Merge pull request #2781 from crasker/patch-1

use suggest method instead of DEPRECATED one
......@@ -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/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册