diff --git a/resources/recipes/dbb.recipe b/resources/recipes/dbb.recipe new file mode 100644 index 0000000000..d137e78f7a --- /dev/null +++ b/resources/recipes/dbb.recipe @@ -0,0 +1,45 @@ +# -*- coding: utf-8 + +__license__ = 'GPL v3' +__author__ = 'Luis Hernandez' +__copyright__ = 'Luis Hernandez' + +''' +http://www.filmica.com/david_bravo/ +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1294946868(BasicNewsRecipe): + + title = u'Blog de David Bravo' + publisher = u'Filmica' + + __author__ = 'Luis Hernández' + description = 'blog sobre leyes, p2p y copyright' + cover_url = 'http://www.elpais.es/edigitales/image.php?foto=par/portada/1551.jpg' + + oldest_article = 365 + max_articles_per_feed = 100 + + remove_javascript = True + no_stylesheets = True + use_embedded_content = False + + encoding = 'ISO-8859-1' + language = 'es' + timefmt = '[%a, %d %b, %Y]' + + keep_only_tags = [ + dict(name='div', attrs={'class':['blog','date','blogbody','comments-head','comments-body']}) + ,dict(name='span', attrs={'class':['comments-post']}) + ] + + remove_tags_before = dict(name='div' , attrs={'id':['bitacoras']}) + remove_tags_after = dict(name='div' , attrs={'id':['comments-body']}) + + extra_css = ' p{text-align: justify; font-size: 100%} body{ text-align: left; font-family: serif; font-size: 100% } h2{ font-family: sans-serif; font-size:75%; font-weight: 800; text-align: justify } h3{ font-family: sans-serif; font-size:150%; font-weight: 600; text-align: left } img{margin-bottom: 0.4em} ' + + + + feeds = [(u'Blog', u'http://www.filmica.com/david_bravo/index.rdf')]