mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
THN and RDS by Nexus
This commit is contained in:
parent
8e69c62d05
commit
290bef4350
18
resources/recipes/rds.recipe
Normal file
18
resources/recipes/rds.recipe
Normal file
@ -0,0 +1,18 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1290013720(BasicNewsRecipe):
|
||||
title = u'RDS'
|
||||
__author__ = 'Nexus'
|
||||
language = 'en_CA'
|
||||
description = 'Hockey News'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 25
|
||||
no_stylesheets = True
|
||||
remove_tags = [dict(name='div', attrs={'id':'rdsWrap'}),
|
||||
dict(name='table', attrs={'id':'aVoir'}),
|
||||
dict(name='div', attrs={'id':'imageChronique'})]
|
||||
keep_only_tags = [dict(name='div', attrs={'id':['enteteChronique']}),
|
||||
dict(name='div', attrs={'id':['contenuChronique']})]
|
||||
|
||||
|
||||
feeds = [(u'RDS', u'http://www.rds.ca/hockey/fildepresse_rds.xml')]
|
19
resources/recipes/thn.recipe
Normal file
19
resources/recipes/thn.recipe
Normal file
@ -0,0 +1,19 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class AdvancedUserRecipe1289990851(BasicNewsRecipe):
|
||||
title = u'The Hockey News'
|
||||
language = 'en_CA'
|
||||
__author__ = 'Nexus'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 25
|
||||
no_stylesheets = True
|
||||
remove_tags = [dict(name='div', attrs={'class':'article_info'}),
|
||||
dict(name='div', attrs={'class':'photo_details'}),
|
||||
dict(name='div', attrs={'class':'tool_menu'}),
|
||||
dict(name='div', attrs={'id':'comments_container'}),
|
||||
dict(name='div', attrs={'id':'wrapper'})]
|
||||
keep_only_tags = [dict(name='h1', attrs={'class':['headline']}),
|
||||
dict(name='div', attrs={'class':['box_container']})]
|
||||
|
||||
feeds = [(u'THN', u'http://www.thehockeynews.com/rss/all_categories.xml')]
|
||||
|
Loading…
x
Reference in New Issue
Block a user