import json
import pymongo
import json
from bson import json_util
from newstoday.models.newsdb import conn 

conn,db = conn().dbconn() 
class getnews():
    def getcolnames(self):
       cols = db.collection_names()
       return cols
    def getcollectiondata(self,col):
       
       col = db[col]
       coldata = col.find()
       return coldata
	

4ee15eab566ea2435fa361d73f1866ebbcfd3267
<mask token>


class getnews:

    def getcolnames(self):
        cols = db.collection_names()
        return cols
    <mask token>

<mask token>


class getnews:

    def getcolnames(self):
        cols = db.collection_names()
        return cols

    def getcollectiondata(self, col):
        col = db[col]
        coldata = col.find()
        return coldata

<mask token>
conn, db = conn().dbconn()


class getnews:

    def getcolnames(self):
        cols = db.collection_names()
        return cols

    def getcollectiondata(self, col):
        col = db[col]
        coldata = col.find()
        return coldata

import json
import pymongo
import json
from bson import json_util
from newstoday.models.newsdb import conn
conn, db = conn().dbconn()


class getnews:

    def getcolnames(self):
        cols = db.collection_names()
        return cols

    def getcollectiondata(self, col):
        col = db[col]
        coldata = col.find()
        return coldata

import json
import pymongo
import json
from bson import json_util
from newstoday.models.newsdb import conn 

conn,db = conn().dbconn() 
class getnews():
    def getcolnames(self):
       cols = db.collection_names()
       return cols
    def getcollectiondata(self,col):
       
       col = db[col]
       coldata = col.find()
       return coldata
	
