diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 3167b5dbf2..761b5ab4de 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -28,7 +28,7 @@ recipe_modules = ['recipe_' + r for r in ( 'la_tercera', 'el_mercurio_chile', 'la_cuarta', 'lanacion_chile', 'la_segunda', 'jb_online', 'estadao', 'o_globo', 'vijesti', 'elmundo', 'the_oz', 'honoluluadvertiser', 'starbulletin', 'exiled', 'indy_star', 'dna', - 'pobjeda', 'chicago_breaking_news', + 'pobjeda', 'chicago_breaking_news', 'glasgow_herald', )] import re, imp, inspect, time, os diff --git a/src/calibre/web/feeds/recipes/recipe_glasgow_herald.py b/src/calibre/web/feeds/recipes/recipe_glasgow_herald.py new file mode 100644 index 0000000000..a2f5577d81 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_glasgow_herald.py @@ -0,0 +1,34 @@ +import re + +from calibre.web.feeds.news import BasicNewsRecipe + +class GlasgowHerald(BasicNewsRecipe): + title = u'Glasgow Herald' + oldest_article = 1 + max_articles_per_feed = 100 + no_stylesheets = True + language = _('English') + __author__ = 'McCande' + + preprocess_regexps = [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + [ + (r'