mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sync to trunk.
This commit is contained in:
commit
6430641bd0
45
resources/recipes/pilot.recipe
Normal file
45
resources/recipes/pilot.recipe
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class PilotOnline(BasicNewsRecipe):
|
||||||
|
title = u'Pilot Online'
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'Krittika Goyal'
|
||||||
|
oldest_article = 120 #days
|
||||||
|
max_articles_per_feed = 25
|
||||||
|
|
||||||
|
|
||||||
|
no_stylesheets = True
|
||||||
|
remove_tags_before = dict(name='div', attrs={'id':'wrapper'})
|
||||||
|
#remove_tags_after = dict(name='td', attrs={'class':'asset-bar'})
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='iframe'),
|
||||||
|
dict(name='div', attrs={'class':['breadcrumb', 'asset-bar', 'footerLogos', 'footerLinks', 'lefty', 'righty', 'last', 'subFooter', 'footerLinks-last', 'comment clear-block', 'box', 'related', ]}),
|
||||||
|
dict(name='div', attrs={'id':['rightColumn']}),
|
||||||
|
dict(name='span', attrs={'class':'comment_forbidden'}),
|
||||||
|
dict(name='ul', attrs={'class':'links inline'}),
|
||||||
|
dict(name='p', attrs={'id':'commentadvisory'}),
|
||||||
|
dict(name='div', attrs={'style':['width: 300px; margin-right: 2em; float: left;']}),
|
||||||
|
dict(name='div', style="float:right; width: 300px;"),
|
||||||
|
dict(name='p', style="clear:both;"),
|
||||||
|
#dict(name='p', attrs={'name':'&lpos=footer_textlinks'}),
|
||||||
|
dict(name='span', text=':'),
|
||||||
|
]
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
('Hampton Roads',
|
||||||
|
'http://hamptonroads.com/taxterm/11'),
|
||||||
|
'http://hamptonroads.com/taxterm/12',
|
||||||
|
'http://hamptonroads.com/taxterm/222',
|
||||||
|
'http://hamptonroads.com/taxterm/224',
|
||||||
|
'http://hamptonroads.com/taxterm/226',
|
||||||
|
'http://hamptonroads.com/taxterm/3',
|
||||||
|
'http://hamptonroads.com/taxterm/149',
|
||||||
|
'http://hamptonroads.com/taxterm/228',
|
||||||
|
'http://hamptonroads.com/taxterm/4',
|
||||||
|
'http://hamptonroads.com/taxterm/522',
|
||||||
|
'http://hamptonroads.com/taxterm/420',
|
||||||
|
'http://hamptonroads.com/taxterm/227',
|
||||||
|
'http://hamptonroads.com/taxterm/231',
|
||||||
|
'http://hamptonroads.com/taxterm/232',
|
||||||
|
]
|
||||||
|
|
@ -26,7 +26,7 @@ FORMAT_ARG_DESCS = dict(
|
|||||||
author_sort=_('The author sort string'),
|
author_sort=_('The author sort string'),
|
||||||
tags=_('The tags'),
|
tags=_('The tags'),
|
||||||
series=_('The series'),
|
series=_('The series'),
|
||||||
series_index=_('The series number'),
|
series_index=_('The series number. To get leading zeros use {series_index:03n}'),
|
||||||
rating=_('The rating'),
|
rating=_('The rating'),
|
||||||
isbn=_('The ISBN'),
|
isbn=_('The ISBN'),
|
||||||
publisher=_('The publisher'),
|
publisher=_('The publisher'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user