2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
3
from __future__ import with_statement
6
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
7
__docformat__ = 'restructuredtext en'
10
from calibre.web.feeds.news import BasicNewsRecipe
12
class KellogInsight(BasicNewsRecipe):
14
title = 'Kellog Insight'
15
__author__ = 'Kovid Goyal'
16
description = 'Articles from the Kellog School of Management'
19
language = _('English')
21
remove_tags_before = {'name':'h1'}
22
remove_tags_after = {'class':'col-two-text'}
27
'http://insight.kellogg.northwestern.edu/index.php/Kellogg/RSS')]
29
def get_article_url(self, article):
30
# Get only article not blog links
31
link = BasicNewsRecipe.get_article_url(self, article)
32
if link and '/article/' in link:
34
self.log('Skipping non-article', link)