Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
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, '')
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
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)