Beispiel #1
0
 def __init__(self, mongo_host, mongo_db, mongo_col, jobid):
     col = pymongo.Connection(mongo_host)[mongo_db][mongo_col]
     self.store = MongoPageStore(col, jobid)
Beispiel #2
0
 def setUp(self):
     c = MongoClient()
     c.drop_database('hci-test')
     col = c['hci-test']['crawler.pages']
     self.pagestore = MongoPageStore(col, 'JOBID')
Beispiel #3
0
 def setUp(self):
     c = pymongo.Connection()
     c.drop_database('hci-test')
     col = c['hci-test']['crawler.pages']
     self.pagestore = MongoPageStore(col, 'JOBID')