MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

insta_monitering/insta_datafetcher.py:364–371  ·  view source on GitHub ↗
(self, user, tags, type, productId)

Source from the content-addressed store, hash-verified

362
363class DBDataFetcher:
364 def __init__(self, user, tags, type, productId):
365 try:
366 self.mon = pymongo.MongoClient(host=config.host, port=config.mongoPort)
367 db = self.mon[productId + ":" + user + ":insta"]
368 self._collection = db[tags]
369 except Exception as err:
370 print(f"exception : {err}\n")
371 print("error::DBDataFetcher.init>>", sys.exc_info()[1])
372
373 def dbFetcher(self, limit=20):
374 mainlist = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected