| 1 |
# -*- mode: python -*- |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
__license__ = 'GPL v3' |
| 5 |
__copyright__ = '2008-2021, Darko Miletic <darko.miletic at gmail.com>' |
| 6 |
''' |
| 7 |
infobae.com |
| 8 |
''' |
| 9 |
|
| 10 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 11 |
|
| 12 |
|
| 13 |
class Infobae(BasicNewsRecipe): |
| 14 |
title = 'Infobae.com' |
| 15 |
__author__ = 'Darko Miletic and Sujata Raman' |
| 16 |
description = 'Infobae.com es el sitio de noticias con mayor actualizacion de Latinoamérica. Noticias actualizadas las 24 horas, los 365 días del año.' |
| 17 |
publisher = 'Infobae.com' |
| 18 |
category = 'news, politics, Argentina' |
| 19 |
oldest_article = 1 |
| 20 |
max_articles_per_feed = 100 |
| 21 |
no_stylesheets = True |
| 22 |
use_embedded_content = False |
| 23 |
auto_cleanup = True |
| 24 |
language = 'es_AR' |
| 25 |
encoding = 'utf8' |
| 26 |
remove_empty_feeds = True |
| 27 |
handle_gzip = True |
| 28 |
compress_news_images = True |
| 29 |
scale_news_images_to_device = True |
| 30 |
ignore_duplicate_articles = {'url'} |
| 31 |
masthead_url = 'https://www.infobae.com/pf/resources/images/logo_infobae_naranja.svg?d=662' |
| 32 |
extra_css = ''' |
| 33 |
body{font-family: Arial,Helvetica,sans-serif} |
| 34 |
img{display: block} |
| 35 |
.categoria{font-size: small; text-transform: uppercase} |
| 36 |
''' |
| 37 |
|
| 38 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 39 |
|
| 40 |
feeds = [('Ahora', 'https://www.infobae.com/arc/outboundfeeds/rss/')] |