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

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

Notices

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

please include, thanks

Code:
import re,string

class EUCommissionPress(BasicNewsRecipe):
    title          = u'Pressemitteilungen der EU Kommission pro Politikbereich'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    cover_url = 'http://ec.europa.eu/wel/template_2007/images/banners/banner-background.jpg'
    global language
    language = 'de'
    keep_only_tags = []
    keep_only_tags.append(dict(name = 'div', attrs = {'class': 'pressReleaseContentMain'}))
    remove_tags = []
    def feedlink(num):
       return u'http://europa.eu/rapid/syndication/QuickRSSAction.do?id='+str(num)+'&lang='+language.upper()

    feeds          = [ 
                      (u'Pressemitteilung des Tages',feedlink(64)),
                      (u'Presidency',feedlink(137)),
                      (u'Foreign affairs and security policy',feedlink(138)),
                      (u'Agriculture and rural development',feedlink(139)),
                      (u'Budget and financial programming ',feedlink(140)),
                      (u'Climate action',feedlink(141)),
                      (u'Competition',feedlink(142)),
                      (u'Development',feedlink(143)),
                      (u'Digital agenda',feedlink(144)),
                      (u'Economic and monetary affairs',feedlink(145)),
                      (u'Education, culture, multilingualism and youth ',feedlink(146)),
                      (u'Employment, social Affairs and inclusion ',feedlink(147)),
                      (u'Energy',feedlink(148)),
                      (u'Enlargment and European neighbourhood policy ',feedlink(149)),
                      (u'Environment',feedlink(150)),
                      (u'Health and consumer policy',feedlink(151)),
                      (u'Home affairs',feedlink(152)),
                      (u'Industry and entrepreneurship',feedlink(153)),
                      (u'Inter-Institutional relations and administration',feedlink(154)),
                      (u'Internal market and services',feedlink(155)),
                      (u'International cooperation, humanitarian aid and crisis response',feedlink(156)),
                      (u'Justice, fundamental rights and citizenship',feedlink(157)),
                      (u'Maritime affairs and fisheries',feedlink(158)),
                      (u'Regional policy',feedlink(159)),
                      (u'Research and innovation',feedlink(160)),
                      (u'Taxation and customs union, audit and anti-fraud',feedlink(161)),
                      (u'Trade',feedlink(162)),
                      (u'Transport',feedlink(163))
                      ]
    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;}
     '''
malfi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
press releases of the German government malfi Recipes 0 11-12-2010 04:14 PM
Oxford University Press releases Kindle editions, stunned by results DMcCunney News 7 03-02-2008 09:45 PM
Reader press releases Alexander Turcic Sony Reader 1 09-27-2006 06:00 AM


All times are GMT -4. The time now is 03:55 PM.


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