wnwnw

크롤링 파일 index1으로 통합

/*
var express = require('express');
var cheerio = require('cheerio');
var request = require('request');
......@@ -77,14 +78,14 @@ function getAllToons2() {
list.forEach(function (item, idx) {
var webtoon_link = 'http://webtoon.daum.net/webtoon/view/' + item.nickname.toString();
var yyyy = (item.finishDate).substring(0,4)
var webtoon = {
toon_index : item.id,
name: item.title,
thum_link: item.pcThumbnailImage.url,
webtoon_link: webtoon_link,
year : yyyy
}
allWebtoonList2.push(webtoon);
});
......@@ -97,11 +98,12 @@ function getAllToons2() {
getAllToons2();
setInterval(getAllToons2,5*60*1000);
*/
/* GET home page. */
//진아 : list :allWebtoons2.3 해도 되는지??!!
/*
router.get('/',
function(req,res,next){
if(req.isAuthenticated()){
......@@ -117,3 +119,4 @@ router.get('/',
});
module.exports = router;
*/
......