이진아

네이버 연재 2005년도까지

......@@ -432,7 +432,246 @@ function getAllToons3(){
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2014년 연재 네이버 웹툰
const naver2014 = 'https://comic.naver.com/webtoon/period.nhn?period=2014';
axios.get(naver2014).then(res => {
if (res.status === 200) {
let naver2014 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2014;
$toonList.each(function (i) {
naver2014[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2014.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2013년 연재 네이버 웹툰
const naver2013 = 'https://comic.naver.com/webtoon/period.nhn?period=2013';
axios.get(naver2013).then(res => {
if (res.status === 200) {
let naver2013 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2013;
$toonList.each(function (i) {
naver2013[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2013.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2012년 연재 네이버 웹툰
const naver2012 = 'https://comic.naver.com/webtoon/period.nhn?period=2012';
axios.get(naver2012).then(res => {
if (res.status === 200) {
let naver2012 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2012;
$toonList.each(function (i) {
naver2012[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2012.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2011년 연재 네이버 웹툰
const naver2011 = 'https://comic.naver.com/webtoon/period.nhn?period=2011';
axios.get(naver2011).then(res => {
if (res.status === 200) {
let naver2011 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2011;
$toonList.each(function (i) {
naver2011[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2011.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2010년 연재 네이버 웹툰
const naver2010 = 'https://comic.naver.com/webtoon/period.nhn?period=2010';
axios.get(naver2010).then(res => {
if (res.status === 200) {
let naver2010 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2010;
$toonList.each(function (i) {
naver2010[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2010.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2009년 연재 네이버 웹툰
const naver2009 = 'https://comic.naver.com/webtoon/period.nhn?period=2009';
axios.get(naver2009).then(res => {
if (res.status === 200) {
let naver2009 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2009;
$toonList.each(function (i) {
naver2009[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2009.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2008년 연재 네이버 웹툰
const naver2008 = 'https://comic.naver.com/webtoon/period.nhn?period=2008';
axios.get(naver2008).then(res => {
if (res.status === 200) {
let naver2008 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2008;
$toonList.each(function (i) {
naver2008[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2008.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2007년 연재 네이버 웹툰
const naver2007 = 'https://comic.naver.com/webtoon/period.nhn?period=2007';
axios.get(naver2007).then(res => {
if (res.status === 200) {
let naver2007 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2007;
$toonList.each(function (i) {
naver2007[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2007.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2006년 연재 네이버 웹툰
const naver2006 = 'https://comic.naver.com/webtoon/period.nhn?period=2006';
axios.get(naver2006).then(res => {
if (res.status === 200) {
let naver2006 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2006;
$toonList.each(function (i) {
naver2006[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2006.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
//2005년 연재 네이버 웹툰
const naver2005 = 'https://comic.naver.com/webtoon/period.nhn?period=2005';
axios.get(naver2005).then(res => {
if (res.status === 200) {
let naver2005 = [];
const $ = cheerio.load(res.data);
const $toonList = $('#content > div.list_area.daily_img > ul > li');
var tn = 2005;
$toonList.each(function (i) {
naver2005[i] = {
title: $(this).find('dl > dt > a').text(),
img: $(this).find('div > a > img').attr('src'),
index: $(this).find('li > div > a').attr('href'),
year : tn
};
});
const data = naver2005.filter(m => m.title);
allWebtoonList3.push(data);
//console.log(allWebtoonList3)
}
}, (error) => console.log(error));
allWebtoons3 = allWebtoonList3;
}
......