정태규

Merge branch 'feature/nate'

...@@ -7,14 +7,17 @@ var c = new Crawler({ ...@@ -7,14 +7,17 @@ var c = new Crawler({
7 console.log(error); 7 console.log(error);
8 } else{ 8 } else{
9 var $ = res.$; 9 var $ = res.$;
10 - console.log('nate 실시간 이슈 키워드'); 10 +
11 + let List = [];
12 + List[0] = 'nate 실시간 이슈 키워드';
11 13
12 const $bodyList = $("ol.rankList").children("li.rl"); 14 const $bodyList = $("ol.rankList").children("li.rl");
13 15
14 console.log(''); 16 console.log('');
15 $bodyList.each(function(i, elem) { 17 $bodyList.each(function(i, elem) {
16 - console.log((i + 1) + ". " + $(this).find('span.kw').text().slice((i+1)/10 + 1)); 18 + List[i + 1] = ((i + 1) + ". " + $(this).find('span.kw').text().slice((i+1)/10 + 1));
17 }); 19 });
20 + console.log(List);
18 } 21 }
19 done(); 22 done();
20 } 23 }
......
This diff is collapsed. Click to expand it.
...@@ -6,10 +6,6 @@ ...@@ -6,10 +6,6 @@
6 "scripts": { 6 "scripts": {
7 "test": "echo \"Error: no test specified\" && exit 1" 7 "test": "echo \"Error: no test specified\" && exit 1"
8 }, 8 },
9 - "keywords": [],
10 "author": "", 9 "author": "",
11 - "license": "ISC", 10 + "license": "ISC"
12 - "dependencies": {
13 - "crawler": "^1.3.0"
14 - }
15 } 11 }
......