SW0000J

각 팀 페이지 완성! 기사 갱신방법 찾기

1 var express = require('express'); 1 var express = require('express');
2 var path = require('path'); 2 var path = require('path');
3 var bodyParser = require('body-parser'); 3 var bodyParser = require('body-parser');
4 -var request = require('request');
5 -var fs = require('fs');
6 -var ejs = require('ejs');
7 var indexRouter = require('./routes/index'); 4 var indexRouter = require('./routes/index');
8 var ncRouter = require('./routes/nc'); 5 var ncRouter = require('./routes/nc');
6 +var lgRouter = require('./routes/lg');
7 +var doosanRouter = require('./routes/doosan');
8 +var kiwoomRouter = require('./routes/kiwoom');
9 +var kiaRouter = require('./routes/kia');
10 +var lotteRouter = require('./routes/lotte');
11 +var samsungRouter = require('./routes/samsung');
12 +var ktRouter = require('./routes/kt');
13 +var skRouter = require('./routes/sk');
14 +var hanwhaRouter = require('./routes/hanwha');
15 +
16 +//var request = require('request');
17 +//var fs = require('fs');
18 +//var ejs = require('ejs');
9 19
10 var app = express(); 20 var app = express();
11 const PORT = 80; 21 const PORT = 80;
...@@ -19,6 +29,15 @@ app.use(bodyParser.urlencoded({ extended: false })); ...@@ -19,6 +29,15 @@ app.use(bodyParser.urlencoded({ extended: false }));
19 29
20 app.use('/', indexRouter); 30 app.use('/', indexRouter);
21 app.use('/nc', ncRouter); 31 app.use('/nc', ncRouter);
32 +app.use('/lg', lgRouter);
33 +app.use('/doosan', doosanRouter);
34 +app.use('/kiwoom', kiwoomRouter);
35 +app.use('/kia', kiaRouter);
36 +app.use('/lotte', lotteRouter);
37 +app.use('/samsung', samsungRouter);
38 +app.use('/kt', ktRouter);
39 +app.use('/sk', skRouter);
40 +app.use('/hanwha', hanwhaRouter);
22 41
23 app.listen(PORT, function(){ 42 app.listen(PORT, function(){
24 console.log('Code run in https://localhost:'+PORT+'\n'); 43 console.log('Code run in https://localhost:'+PORT+'\n');
......
1 +const axios = require("axios"); // 웹 서버 요청 모듈
2 +const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용
3 +
4 +const url = "http://isplus.live.joins.com/news/list/list.asp?page=1"
5 +
6 +const getHtml = async () => {
7 + try {
8 + return await axios.get(url);
9 + } catch (error) {
10 + console.error(error);
11 + }
12 +};
13 +
14 +
15 +const getIsplus1 = async () => {
16 +
17 + return new Promise((resolve, reject) => {
18 + getHtml()
19 + .then(html => {
20 + let ulList = [];
21 + //console.log(html.data);
22 + const $ = cheerio.load(html.data);
23 + const $bodyList = $("div.news_list > div.bd > ul").children("li");
24 +
25 + $bodyList.each(function(i, elem) {
26 + ulList[i] = {
27 + url: $(this).find('dl > dd.photo > a').attr('href'),
28 + image_url: $(this).find('dl > dd.photo > a > img').attr('src'),
29 + title: $(this).find('dl > dt > a').text(),
30 + summary: $(this).find('dl > dd > a').text(),
31 + datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text()
32 + };
33 + //console.log(ulList[i]) // list object checking code
34 + });
35 +
36 + const data = ulList.filter(n => n.title);
37 + return data;
38 + //return ulList;
39 + }).then(data => {
40 + resolve(data);
41 + });
42 +});
43 +};
44 +
45 +module.exports = getIsplus1;
1 +const axios = require("axios"); // 웹 서버 요청 모듈
2 +const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용
3 +
4 +const url = "http://isplus.live.joins.com/news/list/list.asp?page=2"
5 +
6 +const getHtml = async () => {
7 + try {
8 + return await axios.get(url);
9 + } catch (error) {
10 + console.error(error);
11 + }
12 +};
13 +
14 +
15 +const getIsplus2 = async () => {
16 +
17 + return new Promise((resolve, reject) => {
18 + getHtml()
19 + .then(html => {
20 + let ulList = [];
21 + //console.log(html.data);
22 + const $ = cheerio.load(html.data);
23 + const $bodyList = $("div.news_list > div.bd > ul").children("li");
24 +
25 + $bodyList.each(function(i, elem) {
26 + ulList[i] = {
27 + url: $(this).find('dl > dd.photo > a').attr('href'),
28 + image_url: $(this).find('dl > dd.photo > a > img').attr('src'),
29 + title: $(this).find('dl > dt > a').text(),
30 + summary: $(this).find('dl > dd > a').text(),
31 + datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text()
32 + };
33 + //console.log(ulList[i]) // list object checking code
34 + });
35 +
36 + const data = ulList.filter(n => n.title);
37 + return data;
38 + //return ulList;
39 + }).then(data => {
40 + resolve(data);
41 + });
42 +});
43 +};
44 +
45 +module.exports = getIsplus2;
1 +const axios = require("axios"); // 웹 서버 요청 모듈
2 +const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용
3 +
4 +const url = "http://isplus.live.joins.com/news/list/list.asp?page=3"
5 +
6 +const getHtml = async () => {
7 + try {
8 + return await axios.get(url);
9 + } catch (error) {
10 + console.error(error);
11 + }
12 +};
13 +
14 +
15 +const getIsplus3 = async () => {
16 +
17 + return new Promise((resolve, reject) => {
18 + getHtml()
19 + .then(html => {
20 + let ulList = [];
21 + //console.log(html.data);
22 + const $ = cheerio.load(html.data);
23 + const $bodyList = $("div.news_list > div.bd > ul").children("li");
24 +
25 + $bodyList.each(function(i, elem) {
26 + ulList[i] = {
27 + url: $(this).find('dl > dd.photo > a').attr('href'),
28 + image_url: $(this).find('dl > dd.photo > a > img').attr('src'),
29 + title: $(this).find('dl > dt > a').text(),
30 + summary: $(this).find('dl > dd > a').text(),
31 + datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text()
32 + };
33 + //console.log(ulList[i]) // list object checking code
34 + });
35 +
36 + const data = ulList.filter(n => n.title);
37 + return data;
38 + //return ulList;
39 + }).then(data => {
40 + resolve(data);
41 + });
42 +});
43 +};
44 +
45 +module.exports = getIsplus3;
1 +const axios = require("axios"); // 웹 서버 요청 모듈
2 +const cheerio = require("cheerio"); // Load한 것을 jQuery처럼 사용
3 +
4 +const url = "http://isplus.live.joins.com/news/list/list.asp?page=4"
5 +
6 +const getHtml = async () => {
7 + try {
8 + return await axios.get(url);
9 + } catch (error) {
10 + console.error(error);
11 + }
12 +};
13 +
14 +
15 +const getIsplus4 = async () => {
16 +
17 + return new Promise((resolve, reject) => {
18 + getHtml()
19 + .then(html => {
20 + let ulList = [];
21 + //console.log(html.data);
22 + const $ = cheerio.load(html.data);
23 + const $bodyList = $("div.news_list > div.bd > ul").children("li");
24 +
25 + $bodyList.each(function(i, elem) {
26 + ulList[i] = {
27 + url: $(this).find('dl > dd.photo > a').attr('href'),
28 + image_url: $(this).find('dl > dd.photo > a > img').attr('src'),
29 + title: $(this).find('dl > dt > a').text(),
30 + summary: $(this).find('dl > dd > a').text(),
31 + datetime: $(this).find('dl > dd > span.date').text() + " " + $(this).find('dl > dd > span.time').text()
32 + };
33 + //console.log(ulList[i]) // list object checking code
34 + });
35 +
36 + const data = ulList.filter(n => n.title);
37 + return data;
38 + //return ulList;
39 + }).then(data => {
40 + resolve(data);
41 + });
42 +});
43 +};
44 +
45 +module.exports = getIsplus4;
...@@ -27,7 +27,7 @@ const getXports = async () => { ...@@ -27,7 +27,7 @@ const getXports = async () => {
27 url: 'http://www.xportsnews.com' + $(this).find('div.thumb > a').attr('href'), 27 url: 'http://www.xportsnews.com' + $(this).find('div.thumb > a').attr('href'),
28 image_url: $(this).find('div.thumb > a > img').attr('src'), 28 image_url: $(this).find('div.thumb > a > img').attr('src'),
29 title: $(this).find('dl.dlist > dt > a').text(), 29 title: $(this).find('dl.dlist > dt > a').text(),
30 - summary: $(this).find('dd').text().slice(1, -2), 30 + summary: $(this).find('dd').text(),
31 datetime: $(this).find('dd > span.data').text() 31 datetime: $(this).find('dd > span.data').text()
32 }; 32 };
33 //console.log(ulList[i]) // list object checking code 33 //console.log(ulList[i]) // list object checking code
......
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let doosan = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['두산', '베어스', '김재환', '김태형', '알칸타라'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + doosan.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("doosan loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('doosan', {
54 + doosan : doosan
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let hanwha = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['한화', '이긇스', '18연패', '김태균', '한용덕', '최원호', '대전'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + hanwha.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("hanwha loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('hanwha', {
54 + hanwha : hanwha
55 + });
56 +});
57 +
58 +module.exports = router;
1 var express = require('express'); 1 var express = require('express');
2 var router = express.Router(); 2 var router = express.Router();
3 3
4 -const getXports = require('../xports.js'); 4 +const getXports = require('../crawling/xports.js');
5 -const getZum = require('../zum.js'); 5 +const getZum = require('../crawling/zum.js');
6 -const getChosun = require('../chosun.js'); 6 +const getChosun = require('../crawling/chosun.js');
7 -const getYna = require('../yna.js') 7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
8 12
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
9 let xports; 17 let xports;
10 let zum; 18 let zum;
11 let chosun; 19 let chosun;
...@@ -13,12 +21,16 @@ let yna; ...@@ -13,12 +21,16 @@ let yna;
13 let newslist; 21 let newslist;
14 (async function() { 22 (async function() {
15 try { 23 try {
24 + isplus1 = await getIsplus1();
25 + isplus2 = await getIsplus2();
26 + isplus3 = await getIsplus3();
27 + isplus4 = await getIsplus4();
16 xports = await getXports(); 28 xports = await getXports();
17 zum = await getZum(); 29 zum = await getZum();
18 chosun = await getChosun(); 30 chosun = await getChosun();
19 yna = await getYna(); 31 yna = await getYna();
20 32
21 - newslist = xports.concat(zum, chosun, yna); 33 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
22 console.log("index loaded"); 34 console.log("index loaded");
23 35
24 } catch (e) { 36 } catch (e) {
......
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let kia = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['KIA', 'kia', '기아', '타이거즈', '최형우', '윌리엄스', '광주'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + kia.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("kia loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('kia', {
54 + kia : kia
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let kiwoom = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['키움', '히어로즈', '박병호', '손혁', '고척'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + kiwoom.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("kiwoom loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('kiwoom', {
54 + kiwoom : kiwoom
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let kt = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['kt', 'KT', 'wiz', 'WIZ', '케이티', '위즈', '강백호', '이강철', '수원'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + kt.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("kt loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('kt', {
54 + kt : kt
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let lg = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['LG', 'lg', '엘지', '트윈스', '라모스', '류중일'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + lg.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("lg loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('lg', {
54 + lg : lg
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let lotte = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['롯데', '자이언츠', '이대호', '허문회', '사직'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + lotte.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("lotte loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('lotte', {
54 + lotte : lotte
55 + });
56 +});
57 +
58 +module.exports = router;
1 var express = require('express'); 1 var express = require('express');
2 var router = express.Router(); 2 var router = express.Router();
3 3
4 -const getXports = require('../xports.js'); 4 +const getXports = require('../crawling/xports.js');
5 -const getZum = require('../zum.js'); 5 +const getZum = require('../crawling/zum.js');
6 -const getChosun = require('../chosun.js'); 6 +const getChosun = require('../crawling/chosun.js');
7 -const getYna = require('../yna.js') 7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
8 12
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
9 let xports; 17 let xports;
10 let zum; 18 let zum;
11 let chosun; 19 let chosun;
...@@ -14,15 +22,23 @@ let newslist; ...@@ -14,15 +22,23 @@ let newslist;
14 let nc = new Array(); 22 let nc = new Array();
15 (async function() { 23 (async function() {
16 try { 24 try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
17 xports = await getXports(); 29 xports = await getXports();
18 zum = await getZum(); 30 zum = await getZum();
19 chosun = await getChosun(); 31 chosun = await getChosun();
20 yna = await getYna(); 32 yna = await getYna();
21 33
22 - newslist = xports.concat(zum, chosun, yna); 34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['NC', 'nc', '엔씨', '다이노스', '알테어', '강진성', '깡', '이동욱', '창원'];
23 for(var i of newslist){ 36 for(var i of newslist){
24 - if(i.title.indexOf('NC') !== -1 || i.title.indexOf('nc') !== -1 || i.title.indexOf('엔씨') !== -1 || i.summary.indexOf('NC') !== -1 || i.summary.indexOf('nc') !== -1 || i.summary.indexOf('엔씨') !== -1){ 37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
25 nc.push(i); 39 nc.push(i);
40 + break;
41 + }
26 } 42 }
27 } 43 }
28 console.log("nc loaded"); 44 console.log("nc loaded");
......
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let samsung = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['삼성', '라이온즈', '구자욱', '허삼영', '대구'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + samsung.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("samsung loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('samsung', {
54 + samsung : samsung
55 + });
56 +});
57 +
58 +module.exports = router;
1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const getXports = require('../crawling/xports.js');
5 +const getZum = require('../crawling/zum.js');
6 +const getChosun = require('../crawling/chosun.js');
7 +const getYna = require('../crawling/yna.js');
8 +const getIsplus1 = require('../crawling/isplus1.js');
9 +const getIsplus2 = require('../crawling/isplus2.js');
10 +const getIsplus3 = require('../crawling/isplus3.js');
11 +const getIsplus4 = require('../crawling/isplus4.js');
12 +
13 +let isplus1;
14 +let isplus2;
15 +let isplus3;
16 +let isplus4;
17 +let xports;
18 +let zum;
19 +let chosun;
20 +let yna;
21 +let newslist;
22 +let sk = new Array();
23 +(async function() {
24 +try {
25 + isplus1 = await getIsplus1();
26 + isplus2 = await getIsplus2();
27 + isplus3 = await getIsplus3();
28 + isplus4 = await getIsplus4();
29 + xports = await getXports();
30 + zum = await getZum();
31 + chosun = await getChosun();
32 + yna = await getYna();
33 +
34 + newslist = isplus1.concat(isplus2, isplus3, isplus4, xports, zum, chosun, yna);
35 + let searchlist = ['sk', 'SK', '와이번스', '로맥', '염경엽', '인천', '문학'];
36 + for(var i of newslist){
37 + for (var j of searchlist){
38 + if(i.title.indexOf(j) !== -1 || i.summary.indexOf(j) !== -1){
39 + sk.push(i);
40 + break;
41 + }
42 + }
43 + }
44 + console.log("sk loaded");
45 +
46 +} catch (e) {
47 + return console.log(e);
48 +}
49 +})();
50 +
51 +router.get('/', function(req, res, next){
52 +
53 + res.render('sk', {
54 + sk : sk
55 + });
56 +});
57 +
58 +module.exports = router;
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">DOOSAN 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <strong class = "num on">두산</strong>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of doosan) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">HANWHA 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <strong class = "num on">한화</strong>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of hanwha) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">NC 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <strong class = "num on">KIA</strong>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of kia) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">KIWOOM 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <strong class = "num on">키움</strong>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of kiwoom) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">KT 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <strong class = "num on">KT</strong>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of kt) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">LG 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <strong class = "num on">LG</strong>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of lg) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">LOTTE 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <strong class = "num on">롯데</strong>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of lotte) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">SAMSUNG 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <strong class = "num on">삼성</strong>
31 + <a href="/kt" class="num">KT</a>
32 + <a href="/sk" class="num">SK</a>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of samsung) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>
1 +<!DOCTYPE html>
2 +<html>
3 +
4 + <head>
5 + <meta charset="utf-8">
6 + <link rel="stylesheet" href="/stylesheets/style.css" />
7 + <title>YaguMoa[ossswoo.tk]</title>
8 + </head>
9 +
10 + <body class = "body-news-list page-sports body-static" data-nav="sports">
11 + <div id = "container" class = "wrap-container">
12 + <div class = "container">
13 + <div class = 'content03 width1100 line01'>
14 + <div class = "section01">
15 + <div class = 'title-page02'>
16 + <h1 class = "title-type04 bold">
17 + <span class = "tit">야구 모아</span>
18 + </h1>
19 + </div>
20 + <section class = 'box-type box-latest01'>
21 + <strong class="hidden-obj">SK 목록</strong>
22 + <div class = "paging paging-type01">
23 + <a href="/" class="num">All</a>
24 + <a href="/nc" class="num">NC</a>
25 + <a href="/lg" class="num">LG</a>
26 + <a href="/doosan" class="num">두산</a>
27 + <a href="/kiwoom" class="num">키움</a>
28 + <a href="/kia" class="num">KIA</a>
29 + <a href="/lotte" class="num">롯데</a>
30 + <a href="/samsung" class="num">삼성</a>
31 + <a href="/kt" class="num">KT</a>
32 + <strong class = "num on">SK</strong>
33 + <a href="/hanwha" class="num">한화</a>
34 + </div>
35 + <div class = "list-type038">
36 + <ul class = "list">
37 + <% for(var i of sk) { %>
38 + <li>
39 + <div class='item-box01'>
40 + <div class='info-box01'>
41 + <span class="blind">송고시간</span>
42 + <span class='txt-time'><%= i.datetime %></span>
43 + </div>
44 + <% if (i.image_url != undefined) { %>
45 + <figure class='img-con'>
46 + <a class = "img img-cover imgLiquid_bgSize imgLiquid_ready" style = "background-size: cover; background-position: center top; background-repeat: no-repeat;" href = <%= i.url %> >
47 + <img src = <%= i.image_url %>>
48 + </a>
49 + </figure>
50 + <% } %>
51 + <div class='news-con'>
52 + <a class = 'tit-wrap' href = <%= i.url %>>
53 + <strong class = 'tit-news'><%= i.title %></strong>
54 + </a>
55 + <p class = "lead">
56 + <%= i.summary %>
57 + </p>
58 + </div>
59 + </div>
60 + </li>
61 + <% } %>
62 + </ul>
63 + </div>
64 + </section>
65 + </div>
66 + </div>
67 + </div>
68 + </div>
69 + </body>
70 +</html>