mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Diario de Noticias by Jose Pinto
This commit is contained in:
parent
07449c700f
commit
cb97563d7d
23
recipes/diario_de_noticias.recipe
Normal file
23
recipes/diario_de_noticias.recipe
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# vim:fileencoding=UTF-8
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class AdvancedUserRecipe1365070687(BasicNewsRecipe):
|
||||||
|
title ='Diário de Notícias'
|
||||||
|
oldest_article = 7
|
||||||
|
language = 'pt'
|
||||||
|
__author__ = 'Jose Pinto'
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'id':'cln-esqmid'}) ]
|
||||||
|
remove_tags = [ dict(name='table', attrs={'class':'TabFerramentasInf'}) ]
|
||||||
|
|
||||||
|
feeds = [(u'Portugal', u'http://feeds.dn.pt/DN-Portugal'),
|
||||||
|
(u'Globo', u'http://feeds.dn.pt/DN-Globo'),
|
||||||
|
(u'Economia', u'http://feeds.dn.pt/DN-Economia'),
|
||||||
|
(u'Ci\xeancia', u'http://feeds.dn.pt/DN-Ciencia'),
|
||||||
|
(u'Artes', u'http://feeds.dn.pt/DN-Artes'),
|
||||||
|
(u'TV & Media', u'http://feeds.dn.pt/DN-Media'),
|
||||||
|
(u'Opini\xe3o', u'http://feeds.dn.pt/DN-Opiniao'),
|
||||||
|
(u'Pessoas', u'http://feeds.dn.pt/DN-Pessoas')
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user