Skip to content

Commit da64503

Browse files
author
lining
committed
update
1 parent 78fee6c commit da64503

File tree

1 file changed

+2
-2
lines changed
  • WechatSearchProjects/Wechatproject/Wechatproject

1 file changed

+2
-2
lines changed

WechatSearchProjects/Wechatproject/Wechatproject/pipelines.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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):

0 commit comments

Comments
 (0)