File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
WechatSearchProjects/Wechatproject/Wechatproject Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818# host = "localhost",
1919# db = "testwechat", # you must build database named testwechat
2020# user = "root",
21- # passwd = "fireling ",
21+ # passwd = "testpasswd ",
2222# charset = "utf8")
2323# # pipeline default function
2424# def process_item(self, item, spider):
@@ -37,7 +37,7 @@ class WechatprojectPipeline(object):
3737 def __init__ (self ):
3838 connection = pymongo .Connection (host = "localhost" , port = 27017 )
3939 db = connection ["testwechat" ] # you need no build database named testdouban
40- # db.authenticate(name = "root", password = "fireling ") # no name and password for localhost
40+ # db.authenticate(name = "root", password = "testpasswd ") # no name and password for localhost
4141 self .posts = db ["result" ] # you need not build collection named book
4242 # pipeline default function
4343 def process_item (self , item , spider ):
You can’t perform that action at this time.
0 commit comments