mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated sinastock_spider
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user