Skip to content
#

zhihu

Here are 210 public repositories matching this topic...

xyz-blue
xyz-blue commented Feb 24, 2018

我最近也在学习下Python的网络爬虫,非常感谢你的分享。
我今天在搭建好环境后尝试Spider_Python项目时遇到一个问题,无法连接mongodb,提示的错误是pymongo不存在Connection模块,然后我在网上找了下pymongo的用法,做了如下修改后可以正常运行并存入mongodb。
` # 连接数据库,db和posts为数据库和集合的游标
def Connection(self):
#connect to mongo(localhost:27017)
mongoclient = pymongo.MongoClient()
mongodb = mongoclient[self.database]
posts = mongodb.posts
return posts

griffith
xiaoyuhen
xiaoyuhen commented Apr 2, 2019

Griffith Roadmap: April - October 2019

Roadmap Overview

This roadmap is meant to give our team and users clarity over our priorities over the next 6 months. It's meant more as a set of guidelines than as a strict set of tasks we are bound to finish. We may adjust over this period depending on changing needs and feedback from our users.

At a high-level, we're going to be focusing on

Improve this page

Add a description, image, and links to the zhihu topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the zhihu topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.