from calibre.web.feeds.news import BasicNewsRecipe

class blognexto(BasicNewsRecipe):
    title = 'BLOG.NEXTO.pl'
    __author__ = 'MrStefan <mrstefaan@gmail.com>'
    language = 'pl'
    description ='o e-publikacjach prawie wszystko'
    masthead_url='http://blog.nexto.pl/wp-content/uploads/2012/04/logo-blog-nexto.pl_.jpg'
    remove_empty_feeds= True
    oldest_article = 7
    max_articles_per_feed = 100
    remove_javascript=True
    no_stylesheets=True


    keep_only_tags =[]
    keep_only_tags.append(dict(name = 'div', attrs = {'id' : 'content'}))

    remove_tags =[]
    remove_tags.append(dict(name = 'div', attrs = {'class' : 'comment-cloud'}))
    remove_tags.append(dict(name = 'p', attrs = {'class' : 'post-date1'}))
    remove_tags.append(dict(name = 'div', attrs = {'class' : 'fb-like'}))
    remove_tags.append(dict(name = 'div', attrs = {'class' : 'tags'}))
    remove_tags.append(dict(name = 'div', attrs = {'class' : 'postnavi'}))
    remove_tags.append(dict(name = 'div', attrs = {'class' : 'commments-box'}))
    remove_tags.append(dict(name = 'div', attrs = {'id' : 'respond'}))

    feeds          = [('Artykuly', 'http://feeds.feedburner.com/blognexto')]
