import os import os.path import re from calibre.constants import CONFIG_DIR_MODE, config_dir from calibre.web.feeds.recipes import BasicNewsRecipe try: from urllib.parse import quote except ImportError: from urllib import quote from hashlib import md5 class ModorosBlogHu(BasicNewsRecipe): __author__ = 'Zsolt Botykai' title = u'Modoros Blog' description = u'Modoros.blog.hu' oldest_article = 10000 max_articles_per_feed = 10000 reverse_article_order = True language = 'hu' remove_javascript = True remove_empty_feeds = True no_stylesheets = True feeds = [(u'Modoros Blog', u'http://modoros.blog.hu/rss')] use_embedded_content = False preprocess_regexps = [ (re.compile(r'.*?', re.DOTALL | re.IGNORECASE), lambda match: ''), (re.compile(r'

', re.DOTALL | re.IGNORECASE), lambda m: ''), (re.compile(r'