mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# -*- coding: utf-8 -*-
|
|
#!/usr/bin/env python
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = u'2011, Silviu Cotoar\u0103'
|
|
'''
|
|
zf.ro
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class ZiarulFinanciar(BasicNewsRecipe):
|
|
title = 'Ziarul Financiar'
|
|
__author__ = u'Silviu Cotoar\u0103'
|
|
description = u'\u0218tiri din Business'
|
|
publisher = 'Ziarul Financiar'
|
|
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://storage0.dms.mpinteractiv.ro/media/1/1/1706/7462721/1/ziarul-financiar-big.jpg?width=400'
|
|
|
|
conversion_options = {
|
|
'comments' : description
|
|
,'tags' : category
|
|
,'language' : language
|
|
,'publisher' : publisher
|
|
}
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'class':'article'})
|
|
]
|
|
|
|
feeds = [
|
|
(u'\u0218tiri', u'http://www.zf.ro/rss/zf-24/')
|
|
]
|
|
|
|
def preprocess_html(self, soup):
|
|
return self.adeify_images(soup)
|
|
|
|
|
|
|