mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Le Journal de Montreal by Luciano Furtado. Fixes #405 (New news feed)
This commit is contained in:
parent
3b9e43e79e
commit
980388f2bd
43
resources/recipes/le_journal.recipe
Normal file
43
resources/recipes/le_journal.recipe
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
__author__ = ' (lrfurtado@yahoo.com.br)'
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class LeJournalDeMontrealRecipe(BasicNewsRecipe):
|
||||||
|
|
||||||
|
title = u'Le Journal de Montreal'
|
||||||
|
description = u'Le Journal de Montreal'
|
||||||
|
__author__ = 'Luciano Furtado'
|
||||||
|
language = 'fr'
|
||||||
|
|
||||||
|
oldest_article = 7
|
||||||
|
use_embedded_content=0
|
||||||
|
max_articles_per_feed = 15
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='ul',attrs={'id':'mainNav'}),
|
||||||
|
dict(name='div',attrs={'id':'boxPolitique'}),
|
||||||
|
dict(name='div',attrs={'id':'boxScoop'}),
|
||||||
|
dict(name='div',attrs={'id':'DossierSpec'}),
|
||||||
|
dict(name='div',attrs={'id':'channelBoxes'}),
|
||||||
|
dict(name='div',attrs={'id':'sectionBoxes'}),
|
||||||
|
dict(name='div',attrs={'id':'header'}),
|
||||||
|
dict(name='div',attrs={'id':'footer'}),
|
||||||
|
dict(name='div',attrs={'id':'navbarCanoe_container'}),
|
||||||
|
dict(name='div',attrs={'id':'popularCanoe'}),
|
||||||
|
dict(name='div',attrs={'id':'textAds'}),
|
||||||
|
dict(name='div',attrs={'id':'24heures'}),
|
||||||
|
dict(name='div',attrs={'class':'bottomBox clear'}),
|
||||||
|
dict(name='div',attrs={'class':'articleControls thin'}),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'Actualites',
|
||||||
|
u'http://www.canoe.com/rss/feed/nouvelles/ljm_actualites.xml'),
|
||||||
|
(u'Arts et spectacle',
|
||||||
|
u'http://www.canoe.com/rss/feed/nouvelles/ljm_arts.xml'),
|
||||||
|
(u'Sports',
|
||||||
|
u'http://www.canoe.com/rss/feed/nouvelles/ljm_sports.xml'),
|
||||||
|
(u'Chroniques',
|
||||||
|
u'http://www.canoe.com/rss/feed/nouvelles/ljm_chroniques.xml'),
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user