Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes


Thread Tools Search this Thread
Old 03-23-2011, 03:34 AM   #1
Junior Member
ironcat began at the beginning.
ironcat's Avatar
Posts: 5
Karma: 10
Join Date: Mar 2011
Location: Budapest, Hungary
Device: Kindle 3 Wi-Fi
Recipe for hungarian HVG Online

Here is a recipe for hungarian HVG Online


import re
from import BasicNewsRecipe

class HVG(BasicNewsRecipe):
    title                 = 'HVG.HU'
    __author__            = u'István Papp'
    description           = u'Friss hírek a HVG-től'
    timefmt               = ' [%Y. %b. %d., %a.]'
    oldest_article        = 4
    language              = 'hu'

    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    encoding              = 'utf8'
    publisher             = 'HVG Online'
    category              = u'news, hírek, hvg'
    extra_css             = 'body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
    preprocess_regexps    = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
    remove_tags_before    = dict(id='pg-content')
    remove_javascript     = True
    remove_empty_feeds    = True

    feeds = [
              (u'Itthon', u'')
             ,(u'Világ', u'')
             ,(u'Gazdaság', u'')
             ,(u'IT | Tudomány', u'')
             ,(u'Panoráma', u'')
             ,(u'Karrier', u'')
             ,(u'Gasztronómia', u'')
             ,(u'Helyi érték', u'')
             ,(u'Kultúra', u'')
             ,(u'Cégautó', u'')
             ,(u'Vállalkozó szellem', u'')
             ,(u'Egészség', u'')
             ,(u'Vélemény', u'')
             ,(u'Sport', u'')

    def print_version(self, url):
        return url.replace ('#rss', '/print')
ironcat is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Hungarian language weekly Élet és Irodalom Cajus Marcius Recipes 1 12-20-2011 04:44 PM
Two new hungarian recipe hiperlink Recipes 0 03-15-2011 10:37 AM
New Recipe - Wyoming Tribune Eagle Online Tegan Recipes 0 02-12-2011 01:54 PM
would like a recipe to pull down a free online book N13L5 Recipes 17 10-09-2010 10:38 AM
Hungarian accented characters 'ő' and 'ű' show up as '?' bupe Calibre 5 04-17-2010 05:50 AM

All times are GMT -4. The time now is 02:52 PM. is a privately owned, operated and funded community.