Showing
1 changed file
with
6 additions
and
3 deletions
1 | +/* | ||
1 | var express = require('express'); | 2 | var express = require('express'); |
2 | var cheerio = require('cheerio'); | 3 | var cheerio = require('cheerio'); |
3 | var request = require('request'); | 4 | var request = require('request'); |
... | @@ -77,14 +78,14 @@ function getAllToons2() { | ... | @@ -77,14 +78,14 @@ function getAllToons2() { |
77 | list.forEach(function (item, idx) { | 78 | list.forEach(function (item, idx) { |
78 | var webtoon_link = 'http://webtoon.daum.net/webtoon/view/' + item.nickname.toString(); | 79 | var webtoon_link = 'http://webtoon.daum.net/webtoon/view/' + item.nickname.toString(); |
79 | var yyyy = (item.finishDate).substring(0,4) | 80 | var yyyy = (item.finishDate).substring(0,4) |
80 | - | 81 | + |
81 | var webtoon = { | 82 | var webtoon = { |
82 | toon_index : item.id, | 83 | toon_index : item.id, |
83 | name: item.title, | 84 | name: item.title, |
84 | thum_link: item.pcThumbnailImage.url, | 85 | thum_link: item.pcThumbnailImage.url, |
85 | webtoon_link: webtoon_link, | 86 | webtoon_link: webtoon_link, |
86 | year : yyyy | 87 | year : yyyy |
87 | - | 88 | + |
88 | } | 89 | } |
89 | allWebtoonList2.push(webtoon); | 90 | allWebtoonList2.push(webtoon); |
90 | }); | 91 | }); |
... | @@ -97,11 +98,12 @@ function getAllToons2() { | ... | @@ -97,11 +98,12 @@ function getAllToons2() { |
97 | 98 | ||
98 | getAllToons2(); | 99 | getAllToons2(); |
99 | setInterval(getAllToons2,5*60*1000); | 100 | setInterval(getAllToons2,5*60*1000); |
100 | - | 101 | +*/ |
101 | 102 | ||
102 | /* GET home page. */ | 103 | /* GET home page. */ |
103 | 104 | ||
104 | //진아 : list :allWebtoons2.3 해도 되는지??!! | 105 | //진아 : list :allWebtoons2.3 해도 되는지??!! |
106 | +/* | ||
105 | router.get('/', | 107 | router.get('/', |
106 | function(req,res,next){ | 108 | function(req,res,next){ |
107 | if(req.isAuthenticated()){ | 109 | if(req.isAuthenticated()){ |
... | @@ -117,3 +119,4 @@ router.get('/', | ... | @@ -117,3 +119,4 @@ router.get('/', |
117 | }); | 119 | }); |
118 | 120 | ||
119 | module.exports = router; | 121 | module.exports = router; |
122 | +*/ | ... | ... |
-
Please register or login to post a comment