mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
New recipe for The Clarion Ledger by cr4zyd
This commit is contained in:
parent
96d90ebd0f
commit
7d22f36134
20
resources/recipes/clarion_ledger.recipe
Normal file
20
resources/recipes/clarion_ledger.recipe
Normal file
@ -0,0 +1,20 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class ClarionLedger(BasicNewsRecipe):
|
||||
title = u'Clarion Ledger'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
language = 'en'
|
||||
__author__ = 'cr4zyd'
|
||||
|
||||
feeds = [(u'Local News', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS01'), (u'Breaking News', u'http://www.clarionledger.com/apps/pbcs.dll/section?Category=RSS'), (u'Sports', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS02'), (u'Business', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS03')]
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'class':'article-headline'}),
|
||||
dict(name='div', attrs={'class':'article-bodytext'})]
|
||||
remove_tags = [dict(name=['img','script','li']),
|
||||
dict(name='p', attrs={'class':'ratingbyline'}),
|
||||
dict(name='div', attrs={'class':'article-tools'}),
|
||||
dict(name='div', attrs={'class':'article-pagination article-pagination-top'}),
|
||||
dict(name='div', attrs={'class':'article-pagination article-pagination-bottom'}),
|
||||
dict(name='div', attrs={'class':'articleflex-container'})]
|
Loading…
x
Reference in New Issue
Block a user