随笔分类 -  mongoldb

mongoDB
摘要:第一次爬去https://segmentfault.com/t/python?type=newest&page=1 首先定义爬去的字段: 编写爬虫: 编写PIPlines 结果爬去了3456条数据源码在https://github.com/FizLBQ/SpiderPython/tree/Scrap 阅读全文
posted @ 2016-03-31 17:21 gopher-lin 阅读(227) 评论(0) 推荐(0)
摘要:#coding:utf-8 #! /usr/bin/python ''' Author fiz Date:2016-03-30 ''' import pymongo client = pymongo.MongoClient() db = client.test_db collection = db.test_collection mydict = {'name':'Lucy', 'sex':... 阅读全文
posted @ 2016-03-31 17:15 gopher-lin 阅读(152) 评论(0) 推荐(0)
摘要:mongobdbClient 阅读全文
posted @ 2015-12-23 20:56 gopher-lin 阅读(138) 评论(0) 推荐(0)