nosql databases take many different forms some are simple dict-like key-value stores like berkeleydb or tokyo cabinetwhile others are document-basedwith dict-like object being the basic unit of storage 've chosen mongodb (my example started mongodb instance locally on my machineand connect to it on the default port using pymongothe official driver for mongodbimport pymongo con pymongo connection('localhost'port= documents stored in mongodb are found in collections inside databases each running instance of the mongodb server can have multiple databasesand each database can have multiple collections suppose wanted to store the twitter api data from earlier in the firsti can access the (currently emptytweets collectiontweets con db tweets theni load the list of tweets and write each of them to the collection using tweets save (which writes the python dict to mongodb)import requestsjson url 'data json loads(requests get(urltextfor tweet in data['results']tweets save(tweetnowif wanted to get all of my tweets (if anyfrom the collectioni can query the collection with the following syntaxcursor tweets find({'from_user''wesmckinn'}the cursor returned is an iterator that yields each document as dict as above can convert this into dataframeoptionally extracting subset of the data fields in each tweettweet_fields ['created_at''from_user''id''text'result dataframe(list(cursor)columns=tweet_fields data loadingstorageand file formats www it-ebooks info