| 1 |
from calibre.web.feeds.recipes import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class AdvancedUserRecipe1303841067(BasicNewsRecipe): |
| 5 |
title = 'Max-Planck-Gesellschaft' |
| 6 |
description = 'Forschungs-News-Feed der Max-Planck-Gesellschaft' |
| 7 |
__author__ = 'schuster, a.peter' |
| 8 |
__license__ = 'GPL v3' |
| 9 |
version = 2 |
| 10 |
|
| 11 |
oldest_article = 30 |
| 12 |
max_articles_per_feed = 100 |
| 13 |
no_stylesheets = True |
| 14 |
use_embedded_content = False |
| 15 |
language = 'de' |
| 16 |
remove_javascript = True |
| 17 |
timefmt = ' [%d.%m.%Y]' |
| 18 |
|
| 19 |
remove_tags = [ |
| 20 |
dict(attrs={'class': ['box_url', 'print_kontakt']}), |
| 21 |
dict(id=['skiplinks']), |
| 22 |
dict(name='div', attrs={'id': ['print_options', 'print_head']}), |
| 23 |
dict(name='div', attrs={'class': ['col2_box_meta']}), |
| 24 |
dict(name='a', attrs={'class': ['toggle_description']}), |
| 25 |
dict(name='span', attrs={'class': ['lens']}), |
| 26 |
] |
| 27 |
|
| 28 |
def print_version(self, url): |
| 29 |
print_url = url + '?print=yes' |
| 30 |
return print_url |
| 31 |
|
| 32 |
feeds = [('Forschung', 'http://www.mpg.de/de/forschung.rss')] |
| 33 |
|
| 34 |
def get_masthead_url(self): |
| 35 |
return 'http://www.mpg.de/images/logo_print.png' |