File tree 1 file changed +2
-2
lines changed
WechatSearchProjects/Wechatproject/Wechatproject
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
# host = "localhost",
19
19
# db = "testwechat", # you must build database named testwechat
20
20
# user = "root",
21
- # passwd = "fireling ",
21
+ # passwd = "testpasswd ",
22
22
# charset = "utf8")
23
23
# # pipeline default function
24
24
# def process_item(self, item, spider):
@@ -37,7 +37,7 @@ class WechatprojectPipeline(object):
37
37
def __init__ (self ):
38
38
connection = pymongo .Connection (host = "localhost" , port = 27017 )
39
39
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
41
41
self .posts = db ["result" ] # you need not build collection named book
42
42
# pipeline default function
43
43
def process_item (self , item , spider ):
You can’t perform that action at this time.
0 commit comments