I've managed to create a rudimentary recipe for Naples Daily News, and I also found a website to download the front page in a nice pdf format.
Naples Dailly News Frontpage
USA Front Pages
Is there a way to automate the download of a single pdf page using calibre?
Even better is there a way to include it in the recipe for the papers content so they are uploaded together to the reader?
Thanks
gat
irex800dg
Code:
class AdvancedUserRecipe1267557862(BasicNewsRecipe):
title = u'Naples News'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
remove_tags_before = dict(name='h1')
remove_tags_after = dict(id='footer')
feeds = [(u'Headlines', u'http://www.naplesnews.com/feeds/headlines/news/'),
(u'Entertainment', u'http://www.naplesnews.com/feeds/headlines/entertainment/'),
(u'Opinion', u'http://www.naplesnews.com/feeds/headlines/opinion/'),
(u'Business', u'http://www.naplesnews.com/rss/headlines/business/'),
(u'Lifestyles', u'http://www.naplesnews.com/rss/headlines/lifestyles/'),
(u'Sports', u'http://www.naplesnews.com/rss/headlines/sports/')
]
def print_version(self, url):
return url.replace('partner=RSS', 'print=1')