| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class StLouisPostDispatch(BasicNewsRecipe): |
| 5 |
title = 'St Louis Post-Dispatch' |
| 6 |
__author__ = 'cisaak' |
| 7 |
language = 'en_US' |
| 8 |
category = 'newspaper' |
| 9 |
masthead_url = 'http://farm5.static.flickr.com/4118/4929686950_0e22e2c88a.jpg' |
| 10 |
|
| 11 |
oldest_article = 1 |
| 12 |
max_articles_per_feed = 25 |
| 13 |
remove_empty_feeds = True |
| 14 |
use_embedded_content = False |
| 15 |
no_stylesheets = True |
| 16 |
|
| 17 |
remove_tags = [dict(name='div', attrs={'id': 'inline-article-recommend'})] |
| 18 |
|
| 19 |
keep_only_tags = [ |
| 20 |
dict(name='h1', attrs={'class': 'headline'}), |
| 21 |
dict(attrs={'class': 'visible-print'}), |
| 22 |
dict(name='div', attrs={'class': 'lee-article-text'}), |
| 23 |
] |
| 24 |
|
| 25 |
feeds = [ |
| 26 |
('News - Local', 'https://www.stltoday.com/search/?c=news%2Flocal*&d1=&d2=&s=start_time&sd=desc&l=50&f=rss&t=article'), |
| 27 |
('News - Metro', 'http://www.stltoday.com/search/?c=news%2Flocal%2fmetro*&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article'), |
| 28 |
( |
| 29 |
'News - Metro East', |
| 30 |
'http://www.stltoday.com/search/?c=news%2Flocal%2fillinois,news%2Flocal%2fillinois%2f*&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article', |
| 31 |
), |
| 32 |
('News - St. Charles', 'https://www.stltoday.com/search/?c=news%2Flocal%2fstcharles*&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article'), |
| 33 |
('News - National', 'https://www.stltoday.com/search/?c=news%2Fnation-world*&d1=&d2=&s=start_time&sd=desc&l=25&f=rss&t=article'), |
| 34 |
('News - Crime & Courts', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2Fcrime-courts&l=50&f=rss&t=article'), |
| 35 |
('News - Education', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2feducation&f=rss&t=article'), |
| 36 |
( |
| 37 |
'News - Government & Politics', |
| 38 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2fgovernment-politics*&f=rss&t=article', |
| 39 |
), |
| 40 |
('News - Obituaries', 'http://www.stltoday.com/search/?c=news%2Flocal%2fobituaries&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article'), |
| 41 |
('News - Columns', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2Fcolumn*&l=50&f=rss&t=article'), |
| 42 |
( |
| 43 |
'News - Columns - Joe Holleman', |
| 44 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2Fcolumn%2Fjoe-holleman&l=100&f=rss&t=article', |
| 45 |
), |
| 46 |
( |
| 47 |
'News - Columns - Bill McClellan', |
| 48 |
'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2fcolumn%2Fbill-mcclellan&f=rss&t=article', |
| 49 |
), |
| 50 |
( |
| 51 |
'Sports (all local)', |
| 52 |
'https://www.stltoday.com/search/?c=sports*&nc=sports%2Fbetting*&nk=%23noshow&nfl=ap,spotlight,agate,sponsored&k=NOT+%23slsa*+*:*&d1=&d2=&s=start_time&sd=desc&f=rss&&l=50&t=article', |
| 53 |
), |
| 54 |
('Sports - Blues', 'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fprofessional%2Fnhl%2Fblues*&l=100&f=rss&t=article'), |
| 55 |
( |
| 56 |
'Sports - Cardinals', |
| 57 |
'https://www.stltoday.com/search/?c=sports%2Fprofessional%2Fmlb%2Fcardinals*&nc=sports%2Fbetting*&nk=%23noshow&nfl=ap,spotlight,agate,sponsored&k=NOT+%23slsa*+*:*&d1=&d2=&s=start_time&sd=desc&f=rss&&l=50&t=article', |
| 58 |
), |
| 59 |
( |
| 60 |
'Sports - St. Louis City SC', |
| 61 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fprofessional%2Fmls%2Fcity-sc*&l=100&f=rss&t=article', |
| 62 |
), |
| 63 |
( |
| 64 |
'Sports - College', |
| 65 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcollege*&nc=sports%2Fbetting*&nk=%23noshow&nfl=ap,spotlight,agate,sponsored&l=100&f=rss&t=article', |
| 66 |
), |
| 67 |
('Sports - Mizzou', 'http://www2.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcollege%2Fmizzou&l=100&f=rss&t=article'), |
| 68 |
('Sports - SLU', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcollege%2Fslu&l=100&f=rss&t=article'), |
| 69 |
('Sports - High School/Preps', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fhigh-school*&l=100&f=rss&t=article'), |
| 70 |
( |
| 71 |
'Sports - Columns - Dan Caesar', |
| 72 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcolumn%2Fmedia-views&l=50&f=rss&t=article', |
| 73 |
), |
| 74 |
( |
| 75 |
'Sports - Columns - Ben Frederickson', |
| 76 |
'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcolumn%2Fben-frederickson&l=50&f=rss&t=article', |
| 77 |
), |
| 78 |
( |
| 79 |
'Sports - Columns - Jeff Gordon', |
| 80 |
'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=sports%2Fcolumn%2Fjeff-gordon&l=100&f=rss&t=article', |
| 81 |
), |
| 82 |
( |
| 83 |
'Sports - Columns - Benjamin Hochman', |
| 84 |
'http://www.stltoday.com/search/?c=sports%2Fcolumn%2Fbenjamin-hochman&d1=&d2=&s=start_time&sd=desc&f=rss&l=50t=article', |
| 85 |
), |
| 86 |
('Business (all)', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=business*&l=100&f=rss&t=article'), |
| 87 |
('Business - National', 'http://www.stltoday.com/search/?c=business%2Fnational-and-international&d1=&d2=&s=start_time&sd=desc&f=rss&l=100&t=article'), |
| 88 |
( |
| 89 |
'Business - Columns (all)', |
| 90 |
'http://www.stltoday.com/search/?c=business%2Fcolumns,business%2Fcolumns%2f*&d1=&d2=&s=start_time&sd=desc&f=rss&l=50&t=article', |
| 91 |
), |
| 92 |
( |
| 93 |
'Business - Columns - Building Blocks', |
| 94 |
'http://www.stltoday.com/search/?c=business%2Fcolumns%2Fbuilding-blocks&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article', |
| 95 |
), |
| 96 |
( |
| 97 |
'Business - Columns - David Nicklaus', |
| 98 |
'http://www.stltoday.com/search/?c=business%2Fcolumns%2Fdavid-nicklaus&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article', |
| 99 |
), |
| 100 |
('Life and Entertainment', 'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal*&l=100&f=rss&t=article'), |
| 101 |
( |
| 102 |
'Life and Entertainment - Arts & Theater', |
| 103 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Fart-theater*&l=100&f=rss&t=article', |
| 104 |
), |
| 105 |
( |
| 106 |
'Life and Entertainment - Books & Literature', |
| 107 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Fbooks*&l=100&f=rss&t=article', |
| 108 |
), |
| 109 |
( |
| 110 |
'Life and Entertainment - Food and Dining', |
| 111 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Ffood-drink*&l=100&f=rss&t=article', |
| 112 |
), |
| 113 |
( |
| 114 |
'Life and Entertainment - Home and Garden', |
| 115 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Fhome-gardening*&l=100&f=rss&t=article', |
| 116 |
), |
| 117 |
( |
| 118 |
'Life and Entertainment - Movies and TV', |
| 119 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Fmovies-tv*&c=life-entertainment%2Fnation-world%2Fmovies-tv*&l=100&f=rss&t=article', |
| 120 |
), |
| 121 |
('Life and Entertainment - Music', 'http://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=entertainment%2Fmusic*&l=50&f=rss&t=article'), |
| 122 |
( |
| 123 |
'Life and Entertainment - Travel', |
| 124 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=life-entertainment%2Flocal%2Ftravel*&l=100&f=rss&t=article', |
| 125 |
), |
| 126 |
( |
| 127 |
'Life and Entertainment - Columns - Kevin C. Johnson', |
| 128 |
'https://www.stltoday.com/search/?q=&d1=&d2=&s=start_time&sd=desc&c=news%2Flocal%2Fcolumn%2Fthe-blender*&l=100&f=rss&t=article', |
| 129 |
), |
| 130 |
('Opinion - Editorial', 'http://www.stltoday.com/search/?c=opinion%2feditorial&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article'), |
| 131 |
('Opinion - Letters to the Editor', 'https://www.stltoday.com/search/?c=opinion%2Fletters&d1=&d2=&s=start_time&sd=desc&f=rss&l=25&t=article'), |
| 132 |
( |
| 133 |
'Opinion - Local Columns', |
| 134 |
'https://www.stltoday.com/search/?c=opinion%2fcolumn*&d1=&d2=&s=start_time&sd=desc&nfl=ap&nk=%23noshow,dcc&f=rss&l=25&t=article', |
| 135 |
), |
| 136 |
] |