| 1 |
__license__ = 'GPL v3' |
| 2 |
__author__ = 'Luis Hernandez' |
| 3 |
__copyright__ = 'Luis Hernandez<[email protected]>' |
| 4 |
__version__ = 'v1.0' |
| 5 |
__date__ = '29 January 2011' |
| 6 |
|
| 7 |
''' |
| 8 |
http://www.bbc.co.uk/mundo/ |
| 9 |
''' |
| 10 |
|
| 11 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 12 |
|
| 13 |
|
| 14 |
class AdvancedUserRecipe1294946868(BasicNewsRecipe): |
| 15 |
title = 'BBC Mundo' |
| 16 |
publisher = 'BBC' |
| 17 |
|
| 18 |
__author__ = 'Luis Hernandez' |
| 19 |
description = 'BBC World for spanish readers' |
| 20 |
|
| 21 |
cover_url = 'http://1.bp.blogspot.com/_NHiOjk_uZwU/TEYy7IJAdAI/AAAAAAAABP8/coAE-pJ7_5E/s1600/bbcmundo_h.png' |
| 22 |
oldest_article = 2 |
| 23 |
max_articles_per_feed = 100 |
| 24 |
|
| 25 |
remove_javascript = True |
| 26 |
no_stylesheets = True |
| 27 |
use_embedded_content = False |
| 28 |
|
| 29 |
language = 'es' |
| 30 |
remove_empty_feeds = True |
| 31 |
encoding = 'UTF-8' |
| 32 |
timefmt = '[%a, %d %b, %Y]' |
| 33 |
|
| 34 |
remove_tags_before = dict(name='div', attrs={'class': ['g-group']}) |
| 35 |
remove_tags_after = dict(name='div', attrs={'class': [' g-w8']}) |
| 36 |
|
| 37 |
remove_tags = [ |
| 38 |
dict(name='ul', attrs={'class': ['document-tools blq-clearfix', 'blq-clearfix']}), |
| 39 |
dict( |
| 40 |
name='div', |
| 41 |
attrs={ |
| 42 |
'class': [ |
| 43 |
'box bx-quote-bubble', |
| 44 |
'socialmedia-links', |
| 45 |
'list li-carousel', |
| 46 |
'list li-plain rolling-news', |
| 47 |
'list li-plain', |
| 48 |
'box bx-livestats', |
| 49 |
'li-tab content', |
| 50 |
'list li-relatedlinks', |
| 51 |
'list li-relatedinternetlinks', |
| 52 |
] |
| 53 |
}, |
| 54 |
), # noqa: E501 |
| 55 |
] |
| 56 |
|
| 57 |
feeds = [ |
| 58 |
('Portada', 'http://www.bbc.co.uk/mundo/index.xml'), |
| 59 |
('Ultimas Noticias', 'http://www.bbc.co.uk/mundo/ultimas_noticias/index.xml'), |
| 60 |
('Internacional', 'http://www.bbc.co.uk/mundo/temas/internacional/index.xml'), |
| 61 |
('Economia', 'http://www.bbc.co.uk/mundo/temas/economia/index.xml'), |
| 62 |
('America Latina', 'http://www.bbc.co.uk/mundo/temas/america_latina/index.xml'), |
| 63 |
('Ciencia', 'http://www.bbc.co.uk/mundo/temas/ciencia/index.xml'), |
| 64 |
('Salud', 'http://www.bbc.co.uk/mundo/temas/salud/index.xml'), |
| 65 |
('Tecnologia', 'http://www.bbc.co.uk/mundo/temas/tecnologia/index.xml'), |
| 66 |
('Cultura', 'http://www.bbc.co.uk/mundo/temas/cultura/index.xml'), |
| 67 |
] |