Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2010, 04:14 PM   #1
malfi
Member
malfi began at the beginning.
 
Posts: 11
Karma: 14
Join Date: Nov 2010
Device: none
press releases of the German government

Please include:

Code:
import re,string

class GermanGovermentPress(BasicNewsRecipe):
    title          = u'Pressemitteilungen der Bundesregierung'
    oldest_article = 14
    max_articles_per_feed = 100
    no_stylesheets = True
    cover_url = 'http://www.bundesregierung.de/static/images/logoBR.gif'
    language = 'de'
    keep_only_tags = []
    keep_only_tags.append(dict(name = 'h2'))
    keep_only_tags.append(dict(name = 'div', attrs = {'class': 'textblack'}))
    keep_only_tags.append(dict(name = 'div', attrs = {'class': 'subtitle'}))
    keep_only_tags.append(dict(name = 'div', attrs = {'class': 'text'}))
    remove_tags = []
    feeds          = [ (u'Pressemitteilungen',u'http://www.bundesregierung.de/Webs/Breg/DE/Service/RSS/Functions/bundesregierungPressemitteilungenRSS20,templateId=renderNewsfeed.rdf') ]
    extra_css = '''
     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
     h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
     '''
    def print_version(self, url):
         m = re.search(r'^(.*).html$', url)
         return str(m.group(1)) + ',layoutVariant=Druckansicht.html'
malfi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oxford University Press releases Kindle editions, stunned by results DMcCunney News 7 03-02-2008 09:45 PM
Free (as in beer) Linux bible in German (Galileo Press) TadW Deals and Resources (No Self-Promotion or Affiliate Links) 0 10-30-2007 06:29 AM
Reader press releases Alexander Turcic Sony Reader 1 09-27-2006 06:00 AM


All times are GMT -4. The time now is 06:29 PM.


MobileRead.com is a privately owned, operated and funded community.