﻿import wc_naver.category as naver
from wc_naver.naver_crawler import NaverSingleWebtoonCrawler

import wc_daum.category as daum
from wc_daum.daum_crawler import DaumSingleWebtoonCrawler

# put (category, titleId) tuple of Naver webtoons
# titleId can be obtained from the URL of the webtoon list page
# ex) URL is 'http://comic.naver.com/webtoon/list.nhn?titleId=123456' => titleId is '123456'
naver_title_infos = [
    #(naver.CHALLENGE, ''),
    #(naver.CHALLENGE, ''),
    #(naver.BEST_CHALLENGE, ''),
    #(naver.BEST_CHALLENGE, ''),
    #(naver.WEBTOON, ''),
    #(naver.WEBTOON, ''),
    #(naver.WEBTOON, ''),
]

# put (category, titleId) tuple of Daum webtoons
# titleId can be obtained from the URL of the webtoon list page.
# ex) URL is 'http://cartoon.media.daum.net/webtoon/view/thisiswebtoon' => titleId is 'thisiswebtoon'
# ex) URL is 'http://cartoon.media.daum.net/league/view/1234' => titleId is '1234'
daum_title_infos = [
    #(daum.LEAGUE, ''),
    #(daum.LEAGUE, ''),
    #(daum.LEAGUE, ''),
    #(daum.WEBTOON, ''),
    #(daum.WEBTOON, ''),
    #(daum.WEBTOON, ''),
    #(daum.WEBTOON, ''),
    #(daum.WEBTOON, ''),
]

if __name__ == '__main__':
    for info in naver_title_infos:
        crawler = NaverSingleWebtoonCrawler(info)
        crawler.crawl()

    for info in daum_title_infos:
        crawler = DaumSingleWebtoonCrawler(info)
        crawler.crawl()
@@ -48,16 +48,31 @@
 r.naver_
+single_webtoon_
 crawler 
@@ -196,16 +196,75 @@
 rawler%0A%0A
+from wc_nate.nate_crawler import NateSingleWebtoonCrawler%0A%0A
 # put (c
@@ -1207,16 +1207,248 @@
 ''),%0A%5D%0A%0A
+# put btno of Nate webtoons%0A# bsno can be obtained from the URL of the webtoon list page.%0A# ex) URL is 'http://comics.nate.com/webtoon/detail.php?btno=12345' =%3E titleId is '12345'%0Anate_title_infos = %5B%0A    #'12345',%0A    #'67890',%0A%5D%0A%0A
 if __nam
@@ -1662,28 +1662,144 @@
 nfo)%0A        crawler.crawl()
+%0A        %0A    for info in nate_title_infos:%0A        crawler = NateSingleWebtoonCrawler(info)%0A        crawler.crawl()

add info of Nate webtoons in webtoon_crawler.py