mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
51 lines
1.6 KiB
Python
51 lines
1.6 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = u'2011, Silviu Cotoar\u0103'
|
|
'''
|
|
jurnalul.ro
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class JurnalulNational(BasicNewsRecipe):
|
|
title = u'Jurnalul Na\u0163ional'
|
|
__author__ = u'Silviu Cotoar\u0103'
|
|
description = u'\u0218tiri din Rom\u00e2nia'
|
|
publisher = 'Jurnalul National'
|
|
oldest_article = 5
|
|
language = 'ro'
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
category = 'Ziare,Stiri,Romania'
|
|
encoding = 'utf-8'
|
|
cover_url = 'http://www.jurnalul.ro/images/sigla.png'
|
|
|
|
conversion_options = {
|
|
'comments': description, 'tags': category, 'language': language, 'publisher': publisher
|
|
}
|
|
|
|
keep_only_tags = [
|
|
dict(name='h1', attrs={'class': 'h3 art_title'}), dict(
|
|
name='div', attrs={'class': 'only_text'})
|
|
]
|
|
|
|
feeds = [
|
|
|
|
(u'\u0218tiri', u'http://www.jurnalul.ro/rss/stiri-3028.html'),
|
|
(u'Special', u'http://www.jurnalul.ro/rss/special-3001.html'),
|
|
(u'Sport', u'http://www.jurnalul.ro/rss/sport-3035.html'),
|
|
(u'Bani Afaceri', u'http://www.jurnalul.ro/rss/bani-afaceri-3006.html'),
|
|
(u'Viata Sanatoasa', u'http://www.jurnalul.ro/rss/viata-sanatoasa-3010.html'),
|
|
(u'Stiinta Tehnica', u'http://www.jurnalul.ro/rss/stiinta-tehnica-3019.html'),
|
|
(u'Timp Liber', u'http://www.jurnalul.ro/rss/timp-liber-3022.html'),
|
|
(u'Fun', u'http://www.jurnalul.ro/rss/fun-3038.html'),
|
|
(u'Acum 20 de ani', u'http://www.jurnalul.ro/rss/acum-20-de-ani-3073.html')
|
|
]
|
|
|
|
def preprocess_html(self, soup):
|
|
return self.adeify_images(soup)
|