| 1 |
import re |
| 2 |
|
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
class VioMundo(BasicNewsRecipe): |
| 7 |
title = 'Blog VioMundo' |
| 8 |
__author__ = 'Diniz Bortolotto' |
| 9 |
description = 'Posts do Blog VioMundo' |
| 10 |
publisher = 'Luiz Carlos Azenha' |
| 11 |
oldest_article = 5 |
| 12 |
max_articles_per_feed = 20 |
| 13 |
category = 'news, politics, Brazil' |
| 14 |
language = 'pt_BR' |
| 15 |
publication_type = 'news and politics portal' |
| 16 |
use_embedded_content = False |
| 17 |
no_stylesheets = True |
| 18 |
remove_javascript = True |
| 19 |
|
| 20 |
feeds = [('Blog VioMundo', 'http://www.viomundo.com.br/feed')] |
| 21 |
|
| 22 |
reverse_article_order = True |
| 23 |
|
| 24 |
def print_version(self, url): |
| 25 |
return url + '/print/' |
| 26 |
|
| 27 |
remove_tags_after = dict(id='BlogContent') |
| 28 |
|
| 29 |
preprocess_regexps = [(re.compile(r'\|\ <u>.*</p>'), lambda match: '</p>')] |