MCPcopy
hub / github.com/DropsDevopsOrg/ECommerceCrawlers / insert

Method insert

TaobaoCrawler/dbsimil.py:12–13  ·  view source on GitHub ↗
(self, item_dict)

Source from the content-addressed store, hash-verified

10 self.collection.create_index([('nid', ASCENDING)])
11
12 def insert(self, item_dict):
13 self.collection.insert_one(item_dict)
14
15 def delete_all(self, query_dict):
16 self.collection.delete_many(query_dict)

Callers 12

test.pyFile · 0.45
parseMethod · 0.45
simil_parseMethod · 0.45
keywordMethod · 0.45
userMethod · 0.45
configMethod · 0.45
log_queueMethod · 0.45
errlog_queueMethod · 0.45
add_keywordMethod · 0.45
add_userMethod · 0.45
save_cookiesMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected