From 9f333f025c91be476e3ad0675ed0fc61372ac057 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 23 Jun 2019 21:08:47 +0800 Subject: [PATCH] updated xueqiu spider --- spiders/xueqiu/xueqiu/pipelines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiders/xueqiu/xueqiu/pipelines.py b/spiders/xueqiu/xueqiu/pipelines.py index a5f9c02b..90a86da2 100644 --- a/spiders/xueqiu/xueqiu/pipelines.py +++ b/spiders/xueqiu/xueqiu/pipelines.py @@ -12,7 +12,7 @@ from pymongo import MongoClient class XueqiuPipeline(object): mongo = MongoClient( host=os.environ.get('MONGO_HOST') or 'localhost', - port=int(os.environ.get('MONGO_DB')) or 27017 + port=int(os.environ.get('MONGO_PORT')) or 27017 ) db = mongo[os.environ.get('MONGO_DB') or 'crawlab_test'] col = db.get_collection(os.environ.get('CRAWLAB_COLLECTION') or 'results_xueqiu')