| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class WozDie(BasicNewsRecipe): |
| 5 |
title = 'WOZ Die Wochenzeitung' |
| 6 |
oldest_article = 7 |
| 7 |
max_articles_per_feed = 100 |
| 8 |
language = 'de' |
| 9 |
|
| 10 |
no_stylesheets = True |
| 11 |
remove_tags = [ |
| 12 |
dict(name='p', attrs={'class': 'arrow_top'}), |
| 13 |
dict(name='p', attrs={'class': 'bottom_right'}), |
| 14 |
dict(name='script'), |
| 15 |
] |
| 16 |
extra_css = '''#print_titel{vertical-align: bottom; text-align: |
| 17 |
left; color: #666666; background-color: white; padding-top: 30px; padding- |
| 18 |
bottom: 10px; border-bottom: 1px solid #999999;} #title{text-align: |
| 19 |
left; font-size: large; font-weight: 600; padding-top: 0px; padding- |
| 20 |
bottom: 6px;} h3 {text-align: left; font-size: large; font-weight: 600; |
| 21 |
padding-top: 0px; padding-bottom: 6px;} #lead{font-weight: 600; |
| 22 |
padding-bottom: 6px;} h2{font-weight: 600; padding-bottom: 6px;} |
| 23 |
#author{color: #666666; padding-top: 0px; padding-bottom: 0px;} |
| 24 |
h4{color: #666666; padding-top: 0px; padding-bottom: 0px;} #author2 |
| 25 |
{color: #666666; padding-top: 0px; padding-bottom: 0px;} .dotted_line |
| 26 |
{padding-top: 0px; margin-bottom: 18px; border-bottom: 1px dotted |
| 27 |
#666666;} .intro{margin: 0 auto; font-weight: 600; padding-bottom: |
| 28 |
18px;} h5{margin: 0 auto; font-weight: 600; padding-bottom: 18px;} |
| 29 |
.intro2{margin: 0 auto; font-weight: 600;} .text{padding-bottom: |
| 30 |
18px;} .subtitle{margin: 0 auto; font-weight: 600; padding-bottom: |
| 31 |
10px;} .articletitle{margin: 0 auto; font-weight: 600; padding-bottom: |
| 32 |
10px;} #content_infobox{margin-top: 20px; margin-left: 0px; margin- |
| 33 |
right: 0px; margin-bottom: 10px; text-align: left; border-bottom: 1px |
| 34 |
solid #999999;} .content_infobox_titel{padding-top: 6px; padding- |
| 35 |
bottom: 8px; padding-left: 8px; padding-right: 8px; font-weight: 600; |
| 36 |
border-top: 1px solid #999999; border-bottom: 1px dotted #999999;} |
| 37 |
.content_infobox_text{padding-top: 6px; padding-bottom: 12px; padding- |
| 38 |
left: 8px; padding-right: 8px;} .box_gray{padding-top: 4px; padding- |
| 39 |
left: 7px; padding-right: 7px; padding-bottom: 4px;} .box_white { |
| 40 |
padding-top: 4px; padding-left: 7px; padding-right: 7px; padding-bottom: |
| 41 |
4px;} .content_infobox_mehr{margin-top: 20px; margin-left: 0px; margin- |
| 42 |
right: 0px; margin-bottom: 10px; text-align: left; width: 600px; border- |
| 43 |
bottom: 1px solid #999999;}''' |
| 44 |
|
| 45 |
feeds = [ |
| 46 |
('WOZ Die Wochenzeitung - Headlines', 'http://www.woz.ch/inhalt/headlinesRSS.php'), |
| 47 |
] |
| 48 |
|
| 49 |
def print_version(self, url): |
| 50 |
return url.replace('rss/', 'print_') |