Fix #9274 (Improved Recipe for The Leduc - Wetaskiwin Pipestone Flyer)

This commit is contained in:
Kovid Goyal 2011-03-04 16:40:29 -07:00
parent ecb808768f
commit fb6aa181c1

View File

@ -3,8 +3,13 @@ from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1292550626(BasicNewsRecipe): class AdvancedUserRecipe1292550626(BasicNewsRecipe):
title = 'Leduc - Wetaskiwin Pipestone Flyer' title = 'Leduc - Wetaskiwin Pipestone Flyer'
__author__ = 'Brian Hahn' __author__ = 'Brian Hahn'
description = 'News from Alberta, Canada' description = '''Provides news from central Alberta, Canada. This is a
oldest_article = 56 weekly publication that provides coverage from the Cities of Leduc and
Wetaskiwin, including news from two complete counties, plus the towns and
villages within. The counties of Leduc and Wetaskiwin provide news
coverage of agriculture, sports, government, family, events and opinion.
This publication updated weekly every Thursday.'''
oldest_article = 13
max_articles_per_feed = 100 max_articles_per_feed = 100
no_stylesheets = True no_stylesheets = True
#delay = 1 #delay = 1
@ -16,25 +21,32 @@ class AdvancedUserRecipe1292550626(BasicNewsRecipe):
cover_url = 'http://www.pipestoneflyer.ca/images/calibre-cover.jpg' cover_url = 'http://www.pipestoneflyer.ca/images/calibre-cover.jpg'
remove_tags_before = dict(id='ContentPanel') remove_tags_before = dict(id='ContentPanel')
remove_tags_after = dict(id='ContentPanel') remove_tags_after = dict(id='ContentPanel')
remove_tags = [dict(name='div', attrs={'id':'StoryNav'}),dict(name='div', attrs={'id':'BottomAds'}),dict(name='div', attrs={'id':'MoreStoryLinks'})] remove_tags = [dict(name='div',
attrs={'id':'StoryNav'}),dict(name='div',
attrs={'id':'BottomAds'}),dict(name='div', attrs={'id':'MoreStoryLinks'})]
extra_css = 'img { margin:5px }' extra_css = 'img { margin:5px }'
feeds = [ feeds = [
('Feature', 'http://www.pipestoneflyer.ca/Feature.rss'), ('Feature', 'http://www.pipestoneflyer.ca/Feature.rss'),
('Editors Desk', 'http://www.pipestoneflyer.ca/Editor%27s%20Desk.rss'), ('Editors Desk', 'http://www.pipestoneflyer.ca/Editor%27s%20Desk.rss'),
('Letters', 'http://www.pipestoneflyer.ca/Letters.rss'), ('Letters', 'http://www.pipestoneflyer.ca/Letters.rss'),
('A Loco Viewpoint', 'http://www.pipestoneflyer.ca/A%20Loco%20Viewpoint.rss'), ('A Loco Viewpoint',
('Lifes Doorway', 'http://www.pipestoneflyer.ca/Life%27s%20Doorway.rss'), 'http://www.pipestoneflyer.ca/A%20Loco%20Viewpoint.rss'),
('From the Otherside', 'http://www.pipestoneflyer.ca/From%20the%20Otherside.rss'), ('Lifes Doorway', 'http://www.pipestoneflyer.ca/Life%27s%20Doorway.rss'),
('Opinion', 'http://www.pipestoneflyer.ca/Opinion.rss'), ('From the Otherside',
('Community', 'http://www.pipestoneflyer.ca/Community.rss'), 'http://www.pipestoneflyer.ca/From%20the%20Otherside.rss'),
('Sports', 'http://www.pipestoneflyer.ca/Sports.rss'), ('Opinion', 'http://www.pipestoneflyer.ca/Opinion.rss'),
('Chambers', 'http://www.pipestoneflyer.ca/Chambers.rss'), ('Community', 'http://www.pipestoneflyer.ca/Community.rss'),
('Government', 'http://www.pipestoneflyer.ca/Government.rss'), ('Sports', 'http://www.pipestoneflyer.ca/Sports.rss'),
('Environment', 'http://www.pipestoneflyer.ca/Environment.rss'), ('Chambers', 'http://www.pipestoneflyer.ca/Chambers.rss'),
('Health', 'http://www.pipestoneflyer.ca/Health.rss'), ('Government', 'http://www.pipestoneflyer.ca/Government.rss'),
('Funnies', 'http://www.pipestoneflyer.ca/Funnies.rss'), ('Travel ', 'http://www.pipestoneflyer.ca/Travel%20.rss'),
('Faith', 'http://www.pipestoneflyer.ca/Faith.rss'), ('Environment', 'http://www.pipestoneflyer.ca/Environment.rss'),
('News and Views', 'http://www.pipestoneflyer.ca/News%20and%20Views.rss'), ('Health', 'http://www.pipestoneflyer.ca/Health.rss'),
('Obituaries', 'http://www.pipestoneflyer.ca/Obituaries.rss'), ('Funnies', 'http://www.pipestoneflyer.ca/Funnies.rss'),
('Police Blotter', 'http://www.pipestoneflyer.ca/Police%20Blotter.rss'), ('Events', 'http://www.pipestoneflyer.ca/Events.rss'),
] ('Faith', 'http://www.pipestoneflyer.ca/Faith.rss'),
('News and Views', 'http://www.pipestoneflyer.ca/News%20and%20Views.rss'),
('Obituaries', 'http://www.pipestoneflyer.ca/Obituaries.rss'),
('Police Blotter', 'http://www.pipestoneflyer.ca/Police%20Blotter.rss'),
('Careers', 'http://www.pipestoneflyer.ca/Careers.rss'),
]