Showing
1 changed file
with
239 additions
and
0 deletions
... | @@ -432,6 +432,245 @@ function getAllToons3(){ | ... | @@ -432,6 +432,245 @@ function getAllToons3(){ |
432 | //console.log(allWebtoonList3) | 432 | //console.log(allWebtoonList3) |
433 | } | 433 | } |
434 | }, (error) => console.log(error)); | 434 | }, (error) => console.log(error)); |
435 | +//2014년 연재 네이버 웹툰 | ||
436 | + const naver2014 = 'https://comic.naver.com/webtoon/period.nhn?period=2014'; | ||
437 | + | ||
438 | + axios.get(naver2014).then(res => { | ||
439 | + if (res.status === 200) { | ||
440 | + let naver2014 = []; | ||
441 | + const $ = cheerio.load(res.data); | ||
442 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
443 | + var tn = 2014; | ||
444 | + $toonList.each(function (i) { | ||
445 | + naver2014[i] = { | ||
446 | + title: $(this).find('dl > dt > a').text(), | ||
447 | + img: $(this).find('div > a > img').attr('src'), | ||
448 | + index: $(this).find('li > div > a').attr('href'), | ||
449 | + year : tn | ||
450 | + }; | ||
451 | + }); | ||
452 | + | ||
453 | + const data = naver2014.filter(m => m.title); | ||
454 | + allWebtoonList3.push(data); | ||
455 | + //console.log(allWebtoonList3) | ||
456 | + } | ||
457 | + }, (error) => console.log(error)); | ||
458 | + | ||
459 | +//2013년 연재 네이버 웹툰 | ||
460 | + const naver2013 = 'https://comic.naver.com/webtoon/period.nhn?period=2013'; | ||
461 | + | ||
462 | + axios.get(naver2013).then(res => { | ||
463 | + if (res.status === 200) { | ||
464 | + let naver2013 = []; | ||
465 | + const $ = cheerio.load(res.data); | ||
466 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
467 | + var tn = 2013; | ||
468 | + $toonList.each(function (i) { | ||
469 | + naver2013[i] = { | ||
470 | + title: $(this).find('dl > dt > a').text(), | ||
471 | + img: $(this).find('div > a > img').attr('src'), | ||
472 | + index: $(this).find('li > div > a').attr('href'), | ||
473 | + year : tn | ||
474 | + }; | ||
475 | + }); | ||
476 | + | ||
477 | + const data = naver2013.filter(m => m.title); | ||
478 | + allWebtoonList3.push(data); | ||
479 | + //console.log(allWebtoonList3) | ||
480 | + } | ||
481 | + }, (error) => console.log(error)); | ||
482 | + | ||
483 | +//2012년 연재 네이버 웹툰 | ||
484 | + const naver2012 = 'https://comic.naver.com/webtoon/period.nhn?period=2012'; | ||
485 | + | ||
486 | + axios.get(naver2012).then(res => { | ||
487 | + if (res.status === 200) { | ||
488 | + let naver2012 = []; | ||
489 | + const $ = cheerio.load(res.data); | ||
490 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
491 | + var tn = 2012; | ||
492 | + $toonList.each(function (i) { | ||
493 | + naver2012[i] = { | ||
494 | + title: $(this).find('dl > dt > a').text(), | ||
495 | + img: $(this).find('div > a > img').attr('src'), | ||
496 | + index: $(this).find('li > div > a').attr('href'), | ||
497 | + year : tn | ||
498 | + }; | ||
499 | + }); | ||
500 | + | ||
501 | + const data = naver2012.filter(m => m.title); | ||
502 | + allWebtoonList3.push(data); | ||
503 | + //console.log(allWebtoonList3) | ||
504 | + } | ||
505 | + }, (error) => console.log(error)); | ||
506 | + | ||
507 | +//2011년 연재 네이버 웹툰 | ||
508 | + const naver2011 = 'https://comic.naver.com/webtoon/period.nhn?period=2011'; | ||
509 | + | ||
510 | + axios.get(naver2011).then(res => { | ||
511 | + if (res.status === 200) { | ||
512 | + let naver2011 = []; | ||
513 | + const $ = cheerio.load(res.data); | ||
514 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
515 | + var tn = 2011; | ||
516 | + $toonList.each(function (i) { | ||
517 | + naver2011[i] = { | ||
518 | + title: $(this).find('dl > dt > a').text(), | ||
519 | + img: $(this).find('div > a > img').attr('src'), | ||
520 | + index: $(this).find('li > div > a').attr('href'), | ||
521 | + year : tn | ||
522 | + }; | ||
523 | + }); | ||
524 | + | ||
525 | + const data = naver2011.filter(m => m.title); | ||
526 | + allWebtoonList3.push(data); | ||
527 | + //console.log(allWebtoonList3) | ||
528 | + } | ||
529 | + }, (error) => console.log(error)); | ||
530 | + | ||
531 | +//2010년 연재 네이버 웹툰 | ||
532 | + const naver2010 = 'https://comic.naver.com/webtoon/period.nhn?period=2010'; | ||
533 | + | ||
534 | + axios.get(naver2010).then(res => { | ||
535 | + if (res.status === 200) { | ||
536 | + let naver2010 = []; | ||
537 | + const $ = cheerio.load(res.data); | ||
538 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
539 | + var tn = 2010; | ||
540 | + $toonList.each(function (i) { | ||
541 | + naver2010[i] = { | ||
542 | + title: $(this).find('dl > dt > a').text(), | ||
543 | + img: $(this).find('div > a > img').attr('src'), | ||
544 | + index: $(this).find('li > div > a').attr('href'), | ||
545 | + year : tn | ||
546 | + }; | ||
547 | + }); | ||
548 | + | ||
549 | + const data = naver2010.filter(m => m.title); | ||
550 | + allWebtoonList3.push(data); | ||
551 | + //console.log(allWebtoonList3) | ||
552 | + } | ||
553 | + }, (error) => console.log(error)); | ||
554 | + | ||
555 | +//2009년 연재 네이버 웹툰 | ||
556 | + const naver2009 = 'https://comic.naver.com/webtoon/period.nhn?period=2009'; | ||
557 | + | ||
558 | + axios.get(naver2009).then(res => { | ||
559 | + if (res.status === 200) { | ||
560 | + let naver2009 = []; | ||
561 | + const $ = cheerio.load(res.data); | ||
562 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
563 | + var tn = 2009; | ||
564 | + $toonList.each(function (i) { | ||
565 | + naver2009[i] = { | ||
566 | + title: $(this).find('dl > dt > a').text(), | ||
567 | + img: $(this).find('div > a > img').attr('src'), | ||
568 | + index: $(this).find('li > div > a').attr('href'), | ||
569 | + year : tn | ||
570 | + }; | ||
571 | + }); | ||
572 | + | ||
573 | + const data = naver2009.filter(m => m.title); | ||
574 | + allWebtoonList3.push(data); | ||
575 | + //console.log(allWebtoonList3) | ||
576 | + } | ||
577 | + }, (error) => console.log(error)); | ||
578 | + | ||
579 | +//2008년 연재 네이버 웹툰 | ||
580 | + const naver2008 = 'https://comic.naver.com/webtoon/period.nhn?period=2008'; | ||
581 | + | ||
582 | + axios.get(naver2008).then(res => { | ||
583 | + if (res.status === 200) { | ||
584 | + let naver2008 = []; | ||
585 | + const $ = cheerio.load(res.data); | ||
586 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
587 | + var tn = 2008; | ||
588 | + $toonList.each(function (i) { | ||
589 | + naver2008[i] = { | ||
590 | + title: $(this).find('dl > dt > a').text(), | ||
591 | + img: $(this).find('div > a > img').attr('src'), | ||
592 | + index: $(this).find('li > div > a').attr('href'), | ||
593 | + year : tn | ||
594 | + }; | ||
595 | + }); | ||
596 | + | ||
597 | + const data = naver2008.filter(m => m.title); | ||
598 | + allWebtoonList3.push(data); | ||
599 | + //console.log(allWebtoonList3) | ||
600 | + } | ||
601 | + }, (error) => console.log(error)); | ||
602 | + | ||
603 | +//2007년 연재 네이버 웹툰 | ||
604 | + const naver2007 = 'https://comic.naver.com/webtoon/period.nhn?period=2007'; | ||
605 | + | ||
606 | + axios.get(naver2007).then(res => { | ||
607 | + if (res.status === 200) { | ||
608 | + let naver2007 = []; | ||
609 | + const $ = cheerio.load(res.data); | ||
610 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
611 | + var tn = 2007; | ||
612 | + $toonList.each(function (i) { | ||
613 | + naver2007[i] = { | ||
614 | + title: $(this).find('dl > dt > a').text(), | ||
615 | + img: $(this).find('div > a > img').attr('src'), | ||
616 | + index: $(this).find('li > div > a').attr('href'), | ||
617 | + year : tn | ||
618 | + }; | ||
619 | + }); | ||
620 | + | ||
621 | + const data = naver2007.filter(m => m.title); | ||
622 | + allWebtoonList3.push(data); | ||
623 | + //console.log(allWebtoonList3) | ||
624 | + } | ||
625 | + }, (error) => console.log(error)); | ||
626 | + | ||
627 | +//2006년 연재 네이버 웹툰 | ||
628 | + const naver2006 = 'https://comic.naver.com/webtoon/period.nhn?period=2006'; | ||
629 | + | ||
630 | + axios.get(naver2006).then(res => { | ||
631 | + if (res.status === 200) { | ||
632 | + let naver2006 = []; | ||
633 | + const $ = cheerio.load(res.data); | ||
634 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
635 | + var tn = 2006; | ||
636 | + $toonList.each(function (i) { | ||
637 | + naver2006[i] = { | ||
638 | + title: $(this).find('dl > dt > a').text(), | ||
639 | + img: $(this).find('div > a > img').attr('src'), | ||
640 | + index: $(this).find('li > div > a').attr('href'), | ||
641 | + year : tn | ||
642 | + }; | ||
643 | + }); | ||
644 | + | ||
645 | + const data = naver2006.filter(m => m.title); | ||
646 | + allWebtoonList3.push(data); | ||
647 | + //console.log(allWebtoonList3) | ||
648 | + } | ||
649 | + }, (error) => console.log(error)); | ||
650 | + | ||
651 | +//2005년 연재 네이버 웹툰 | ||
652 | + const naver2005 = 'https://comic.naver.com/webtoon/period.nhn?period=2005'; | ||
653 | + | ||
654 | + axios.get(naver2005).then(res => { | ||
655 | + if (res.status === 200) { | ||
656 | + let naver2005 = []; | ||
657 | + const $ = cheerio.load(res.data); | ||
658 | + const $toonList = $('#content > div.list_area.daily_img > ul > li'); | ||
659 | + var tn = 2005; | ||
660 | + $toonList.each(function (i) { | ||
661 | + naver2005[i] = { | ||
662 | + title: $(this).find('dl > dt > a').text(), | ||
663 | + img: $(this).find('div > a > img').attr('src'), | ||
664 | + index: $(this).find('li > div > a').attr('href'), | ||
665 | + year : tn | ||
666 | + }; | ||
667 | + }); | ||
668 | + | ||
669 | + const data = naver2005.filter(m => m.title); | ||
670 | + allWebtoonList3.push(data); | ||
671 | + //console.log(allWebtoonList3) | ||
672 | + } | ||
673 | + }, (error) => console.log(error)); | ||
435 | 674 | ||
436 | allWebtoons3 = allWebtoonList3; | 675 | allWebtoons3 = allWebtoonList3; |
437 | } | 676 | } | ... | ... |
-
Please register or login to post a comment