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
이진아
2019-12-03 16:42:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f307464a4f783d7aaede426b9512f10ae71103a
6f307464
1 parent
e5d9a421
네이버 연재 2005년도까지
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
239 additions
and
0 deletions
routes/index.js
routes/index.js
View file @
6f30746
...
...
@@ -432,6 +432,245 @@ 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
;
}
...
...
Please
register
or
login
to post a comment