From 117e72609a9bacc2c979ff9e66ce3002f7f04063 Mon Sep 17 00:00:00 2001 From: jfhutson Date: Sat, 25 Feb 2017 21:37:30 -0600 Subject: [PATCH] update to a new feed URL old one doesn't work, auto cleanup for now --- recipes/kstar.recipe | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/recipes/kstar.recipe b/recipes/kstar.recipe index 39045a3a0e..16b0fca3aa 100644 --- a/recipes/kstar.recipe +++ b/recipes/kstar.recipe @@ -11,33 +11,11 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe): oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True + auto_cleanup = True masthead_url = 'http://media.kansascity.com/images/site_logo_340x60.gif' - keep_only_tags = [ - dict(attrs={'id': ['storyTitle', 'sub_headline', 'byLine']}), dict( - name='div', attrs={'id': ['storyDate-Links', 'storyBody']}) - ] feeds = [ - ('Kansas News', 'http://www.kansascity.com/105/index.xml'), + ('kansascity.com', 'http://www.kansascity.com/?widgetName=rssfeed&widgetContentId=6199&getXmlFeed=true'), ] - - def print_version(self, url): - split1 = url.split("/") - url3 = split1[2] - url4 = split1[3] - url5 = split1[4] - url6 = split1[5] - url7 = split1[6] - url8 = split1[7] - - # example of link to convert - # Original link: http://www.kansascity.com/2010/09/04/2199362/lees-summit-school-appears-to.html - # print version: - # http://www.kansascity.com/2010/09/04/v-print/2199362/lees-summit-school-appears-to.html - - print_url = 'http://' + url3 + '/' + url4 + '/' + \ - url5 + '/' + url6 + '/v-print/' + url7 + '/' + url8 - - return print_url