View Single Post
Old 05-18-2011, 03:46 PM   #1
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 119
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /Köln
Device: prs-650 / prs-350 /kindle 3
recipe for "ALDI Süd Wochenflyer" - german

then you know what in your basket.
only for german shopper interesting


Code:
from time import strftime
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1305470859(BasicNewsRecipe):
    title                 = 'Aldi Süd - Wochenflyer'
    __author__            = 'schuster'
    oldest_article        = 15
    max_articles_per_feed = 100
    language              = 'de'
    lang                  = 'de-DE'
    cover_url = 'http://www.aldi-sued.de/de/html/layout_img/ALDI_SUED_Logo_weiss.jpg'
    masthead_url = 'http://www.aldi-sued.de/de/html/layout_img/ALDI_SUED_Logo_weiss.jpg'
    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h4{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    img {min-width:300px; max-width:600px; min-height:300px; max-height:800px}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
	'''
    remove_tags = [dict(attrs={'class':['path', 'header', 'footer', 'teasercontent', 'info', 'zwischenhead', 'artikelsplit']}),
                dict(id=['navTop', 'header', 'list', 'banner', 'topbutton', 'buttons', 'product_pagination', 'top1nav', 'scalecontrol']),
                dict(span=['ratingtext', 'Gesamtranking', 'h3','']),
	dict(rel=['canonical'])]
    feeds          = [(u'Aldi - Angebote der Woche', u'http://aldi-sued.de/de/angebote_aldi_sued_rss.xml')]
schuster is offline   Reply With Quote