신일섭

간이db연동주비

...@@ -14,6 +14,13 @@ var USER_ID = ' '; ...@@ -14,6 +14,13 @@ var USER_ID = ' ';
14 const TOKEN = 'LFi+FvOOFOydz0EKN22WRnQyiilnEiyxe2HVV1WrI54Jnght6+Gga07m7pxqSQltBJG2AV2lYnYOAk4TqxzZFKW9R36CJcQs+NaNEiNKJtgBfT/t3tEta/J6GtXxGz/DqdHnfZqSSfLFpXzun/ITTwdB04t89/1O/w1cDnyilFU=' 14 const TOKEN = 'LFi+FvOOFOydz0EKN22WRnQyiilnEiyxe2HVV1WrI54Jnght6+Gga07m7pxqSQltBJG2AV2lYnYOAk4TqxzZFKW9R36CJcQs+NaNEiNKJtgBfT/t3tEta/J6GtXxGz/DqdHnfZqSSfLFpXzun/ITTwdB04t89/1O/w1cDnyilFU='
15 //---------------------------------------------------------- 15 //----------------------------------------------------------
16 16
17 +//----------------low db-----------------------------------
18 +const low = require('lowdb');
19 +const FileSync = require('lowdb/adapters/FileSync')
20 +const adapter = new FileSync('db.json');
21 +const db = low(adapter);
22 +//---------------------------------------------------------
23 +
17 //gmarket_c(); 24 //gmarket_c();
18 25
19 // Gmarket Cart Crawling 26 // Gmarket Cart Crawling
......