4
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
4
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
9
9
from calibre.web.feeds.news import BasicNewsRecipe
11
class JBOnline(BasicNewsRecipe):
12
title = 'Jornal Brasileiro Online'
13
__author__ = 'Darko Miletic'
14
description = 'News from Brasil'
15
publisher = 'Jornal Brasileiro'
16
category = 'news, politics, Brasil'
18
max_articles_per_feed = 100
20
use_embedded_content = False
22
cover_url = 'http://jbonline.terra.com.br/img/logo_01.gif'
23
remove_javascript = True
11
class JBOnline(BasicNewsRecipe):
12
title = 'Jornal Brasileiro Online'
13
__author__ = 'Darko Miletic'
14
description = 'News from Brasil'
15
publisher = 'Jornal Brasileiro'
16
category = 'news, politics, Brasil'
18
max_articles_per_feed = 100
20
use_embedded_content = False
22
cover_url = 'http://jbonline.terra.com.br/img/logo_01.gif'
23
remove_javascript = True
26
26
'--comment', description
27
, '--category', category
28
, '--publisher', publisher
31
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
33
keep_only_tags = [dict(name='div', attrs={'id':'corpoNoticia'})]
35
remove_tags = [dict(name=['script','object','form'])]
37
feeds = [(u'Todos as editorias', u'http://jbonline.terra.com.br/extra/rsstrjb.xml')]
39
def preprocess_html(self, soup):
40
ifr = soup.find('iframe')
43
for item in soup.findAll(style=True):
47
language = _('Portugese')
b'\\ No newline at end of file'
27
, '--category', category
28
, '--publisher', publisher
31
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
33
keep_only_tags = [dict(name='div', attrs={'id':'corpoNoticia'})]
35
remove_tags = [dict(name=['script','object','form'])]
37
feeds = [(u'Todos as editorias', u'http://jbonline.terra.com.br/extra/rsstrjb.xml')]
39
def preprocess_html(self, soup):
40
ifr = soup.find('iframe')
43
for item in soup.findAll(style=True):
47
language = _('Portuguese')