diff --git a/recipes/utrinski.recipe b/recipes/utrinski.recipe new file mode 100644 index 0000000000..5256695079 --- /dev/null +++ b/recipes/utrinski.recipe @@ -0,0 +1,71 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2011, Darko Spasovski ' +''' +utrinski.com.mk +''' + +import re +import datetime +from calibre.web.feeds.news import BasicNewsRecipe + +class UtrinskiVesnik(BasicNewsRecipe): + + __author__ = 'Darko Spasovski' + INDEX = 'http://www.utrinski.com.mk/' + title = 'Utrinski Vesnik' + description = 'Daily Macedonian newspaper' + masthead_url = 'http://www.utrinski.com.mk/images/LogoTop.jpg' + language = 'mk' + remove_javascript = True + publication_type = 'newspaper' + category = 'news, Macedonia' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + preprocess_regexps = [(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + [ + ## Remove anything before the start of the article. + (r'', lambda match: ''), + + ## Remove anything after the end of the article. + (r'