Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이하영
/
YTMT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
wnwnw
2019-12-11 02:56:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
18576645689369512572cd7958007024f77e3875
18576645
1 parent
876006cf
크롤링 파일 index1으로 통합
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
routes/index2.js
routes/index2.js
View file @
1857664
/*
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;
*/
...
...
Please
register
or
login
to post a comment