updated sinastock_spider

This commit is contained in:
Marvin Zhang
2019-07-07 09:17:15 +08:00
parent 32e93de024
commit ac26d28777

View File

@@ -18,7 +18,7 @@ class SinastockSpiderSpider(scrapy.Spider):
)
db = mongo[os.environ.get('MONGO_DB') or 'crawlab_test']
col = db.get_collection(os.environ.get('CRAWLAB_COLLECTION') or 'stock_news')
page_num = os.environ.get('PAGE_NUM') or 3
page_num = int(os.environ.get('PAGE_NUM')) or 3
def start_requests(self):
col = self.db['stocks']