View Single Post
Old 06-19-2009, 06:27 PM   #1
Reader2
intentionally left blank
Reader2 began at the beginning.
 
Reader2's Avatar
 
Posts: 28
Karma: 12
Join Date: Jun 2009
Location: Netherlands
Device: BeBook (display damage) so 2nd: Nook still working; Sony hardly used;
Volkskrant / Dutch news feed

For the dutch readers some code:

# -*- coding: utf-8 -*-
class AdvancedUserRecipe1245357002(BasicNewsRecipe):
title = u'Volkskrant'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True

feeds = [(u'laatstenieuws',u'http://feeds.volkskrant.nl/laatstenieuws/'),(u'nederland',u'http://feeds.volkskrant.nl/nederland/'),(u'economie',u'http://feeds.volkskrant.nl/economie/'),(u'kunst',u'http://feeds.volkskrant.nl/kunst/'),(u'wetenschap',u'http://feeds.feedburner.com/DeVolkskrantWetenschap/'),(u'techniek',u'http://feeds.feedburner.com/vkmedia/'),
]

remove_tags = [dict(name='div', attrs={'class':['mainItems','subItems','menuBarRight','zoek']}),dict(name='div', attrs={'id':['header','domeinenmenu','menuWrapper','zoek','prin tversie']})]
remove_tags_after = [dict(name='div', attrs={'class':'article_tools'})]

def print_version(self, url):
return url+'?service=Print'
# just for what it is, the "?service=Print" does not work - seems has to pass twice or someting like that - who can help me out?
Reader2 is offline   Reply With Quote