diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 1513948bed..4f1a5336ad 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -57,7 +57,7 @@ recipe_modules = ['recipe_' + r for r in ( 'monitor', 'republika', 'beta', 'beta_en', 'glasjavnosti', 'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga', 'intelligencer', 'theoldfoodie', 'hln_be', 'honvedelem', - 'the_new_republic', + 'the_new_republic', 'philly', )] diff --git a/src/calibre/web/feeds/recipes/recipe_philly.py b/src/calibre/web/feeds/recipes/recipe_philly.py new file mode 100644 index 0000000000..f8dc24d22f --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_philly.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +__license__ = 'GPL v3' +''' +philly.com/inquirer/ +''' +import re +from calibre.web.feeds.recipes import BasicNewsRecipe + +class Philly(BasicNewsRecipe): + + title = 'Philadelphia Inquirer' + __author__ = 'RadikalDissent' + language = 'en' + description = 'Daily news from the Philadelphia Inquirer' + no_stylesheets = True + use_embedded_content = False + oldest_article = 1 + max_articles_per_feed = 25 + extra_css = ''' + .byline {font-size: small; color: grey; font-style:italic; } + .lastline {font-size: small; color: grey; font-style:italic;} + .contact {font-size: small; color: grey;} + .contact p {font-size: small; color: grey;} + ''' + preprocess_regexps = [(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + [ + (r'