def CAT_NEWS(url): from daum_news import DaumNews site=DaumNews() site.parseTop(url) for title,url in site.menu_list: addDir(title,url,21,'') endDir()
def CAT_NEWS(url): from daum_news import DaumNews site = DaumNews() site.parseTop(url) for title, url in site.menu_list: addDir(title, url, 21, '') endDir()
def BROWSE_NEWS(main_url): from daum_news import DaumNews site=DaumNews() site.parse(main_url) for title,url,thumb in site.video_list: title = title.replace(''',"'") addDir(title, url, 1000, thumb) if site.nextpage: addDir(u"다음 페이지>", site.nextpage[1], 21, '') if site.prevday: addDir(site.prevday[0]+">", site.prevday[1], 21, '')
def BROWSE_NEWS(main_url,contPage): from daum_news import DaumNews site=DaumNews() site.parse(main_url) for title,vid,thumb in site.video_list: title = title.replace(''',"'") addDir(title, vid, 1000, thumb) if site.prevpage: addDir(prevPage, site.prevpage, 22, '') if site.nextpage: addDir(nextPage, site.nextpage, 22, '') endDir(contPage)
def BROWSE_NEWS(main_url, contPage): from daum_news import DaumNews site = DaumNews() site.parse(main_url) for title, vid, thumb in site.video_list: title = title.replace(''', "'") addDir(title, vid, 1000, thumb) if site.prevpage: addDir(prevPage, site.prevpage, 22, '') if site.nextpage: addDir(nextPage, site.nextpage, 22, '') endDir(contPage)