![]() |
#1 |
Member
![]() 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' |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |