1
# -*- coding: utf-8 -*-
5
__copyright__ = u'2011, Silviu Cotoar\u0103'
10
from calibre.web.feeds.news import BasicNewsRecipe
12
class Descopera(BasicNewsRecipe):
13
title = u'Descoper\u0103'
14
__author__ = u'Silviu Cotoar\u0103'
15
description = 'E lumea ta'
16
publisher = 'Descopera'
19
max_articles_per_feed = 100
21
use_embedded_content = False
22
category = 'Ziare,Reviste,Descopera'
24
cover_url = 'http://www.descopera.ro/images/header_images/logo.gif'
26
conversion_options = {
27
'comments' : description
29
,'language' : language
30
,'publisher' : publisher
35
dict(name='h1', attrs={'style':'font-family: Arial,Helvetica,sans-serif; font-size: 18px; color: rgb(51, 51, 51); font-weight: bold; margin: 10px 0pt; clear: both; float: left;width: 610px;'})
36
,dict(name='div', attrs={'style':'margin-right: 15px; margin-bottom: 15px; float: left;'})
37
, dict(name='p', attrs={'id':'itemDescription'})
38
,dict(name='div', attrs={'id':'itemBody'})
42
dict(name='div', attrs={'class':['tools']})
43
, dict(name='div', attrs={'class':['share']})
44
, dict(name='div', attrs={'class':['category']})
45
, dict(name='div', attrs={'id':['comments']})
49
dict(name='div', attrs={'id':'comments'})
53
(u'Feeds', u'http://www.descopera.ro/rss')
56
def preprocess_html(self, soup):
57
return self.adeify_images(soup)