View Single Post
Old 07-22-2011, 08:11 AM   #10
khromov
Connoisseur
khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.khromov ought to be getting tired of karma fortunes by now.
 
Posts: 83
Karma: 499304
Join Date: Jul 2011
Device: Kindle
Hey!

I made a simple recipe for you:
Code:
from calibre.web.feeds.news import BasicNewsRecipe

class Naver(BasicNewsRecipe):
    title          = u'Naver'
    oldest_article        = 7
    delay                 = 1
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    remove_javascript     = True
    encoding              = 'UTF-8'

    feeds = [
               (u'Main feed', u'http://feed43.com/today_navercast.xml') ]

    keep_only_tags = [dict(name='div', attrs={'class':'article'})]
It works fine for me on my Kindle, there are a couple of elements at the end of each article that could probably be removed but I don't speak Korean and am unsure if they are needed or not, so you'll have to remove them yourself.
khromov is offline   Reply With Quote