From 44b24b539e2a9f13b46035c1eba9a6152a3dc54e Mon Sep 17 00:00:00 2001 From: dosangyoon Date: Sat, 13 Nov 2021 11:57:02 +0900 Subject: [PATCH] init --- stockpredictor/crawler/toSQLite/StockCrawler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stockpredictor/crawler/toSQLite/StockCrawler.py b/stockpredictor/crawler/toSQLite/StockCrawler.py index 9b4f4ca..263d00a 100644 --- a/stockpredictor/crawler/toSQLite/StockCrawler.py +++ b/stockpredictor/crawler/toSQLite/StockCrawler.py @@ -185,8 +185,6 @@ class StockCrawler: item_name = item[0] item_code = item[1] - print(idx, item_name, item_code, (time.time()-start_time),"s") - start_time = time.time() cursor.execute('SELECT * FROM ' + tableName + ' WHERE CODE=?', (item_code,)) result = cursor.fetchone() @@ -197,6 +195,9 @@ class StockCrawler: self.crawl_specific_stock(stock) text = json.dumps(stock['PRICE'], ensure_ascii=False) + print(idx, item_name, item_code, (time.time()-start_time),"s") + start_time = time.time() + cursor.execute('SELECT * FROM ' + tableName + ' WHERE CODE=?', (stock["CODE"],)) result = cursor.fetchone() if result == None: