View Single Post
Old 07-23-2011, 12:27 AM   #11
kp63425362
Junior Member
kp63425362 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: kindle3
dear...

Quote:
Originally Posted by zapt0 View Post
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.
I very thank for your help.

but text deal with like picture too.

so 4th small font size, article is cutting.

whatever, thank you.
kp63425362 is offline   Reply With Quote