mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Updated recipe for The Courier-Mail
Added new RSS feeds, and cover image/masthead. Added a new icon.
This commit is contained in:
parent
4b00679b2e
commit
959545ff5a
@ -1,30 +1,31 @@
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
import datetime
|
||||||
|
|
||||||
class Politics(BasicNewsRecipe):
|
class Politics(BasicNewsRecipe):
|
||||||
title = u'Courier Mail'
|
title = u'The Courier-Mail'
|
||||||
|
description = 'Breaking news headlines for Brisbane and Queensland, Australia. The Courier-Mail is owned by News Corp Australia.'
|
||||||
language = 'en_AU'
|
language = 'en_AU'
|
||||||
__author__ = 'Krittika Goyal'
|
__author__ = 'Krittika Goyal, James Cridland'
|
||||||
oldest_article = 3 # days
|
oldest_article = 3 # days
|
||||||
max_articles_per_feed = 20
|
max_articles_per_feed = 20
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
|
||||||
|
d = datetime.datetime.today()
|
||||||
|
cover_url='http://mfeeds.news.com.au/smedia/NCCOURIER/NCCM_1_' + d.strftime('%Y_%m_%d') + '_thumb_big.jpg'
|
||||||
|
masthead_url='https://couriermail.digitaleditions.com.au/images/couriermail-logo.jpg'
|
||||||
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
auto_cleanup = True
|
auto_cleanup = True
|
||||||
|
handle_gzip = True
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Top Stories',
|
('Top Stories', 'http://www.couriermail.com.au/rss'),
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_top_stories_257.xml'),
|
('Breaking', 'https://www.couriermail.com.au/news/breaking-news/rss'),
|
||||||
('Breaking News',
|
('Queensland', 'https://www.couriermail.com.au/news/queensland/rss'),
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_breaking_news_67.xml'),
|
('Technology', 'https://www.couriermail.com.au/technology/rss'),
|
||||||
('Queensland News',
|
('Entertainment', 'https://www.couriermail.com.au/entertainment/rss'),
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_queensland_news_70.xml'),
|
('Finance','https://www.couriermail.com.au/business/rss'),
|
||||||
('Technology News',
|
('Sport', 'https://www.couriermail.com.au/sport/rss'),
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_technology_news_66.xml'),
|
|
||||||
('Entertainment News',
|
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_entertainment_news_256.xml'),
|
|
||||||
('Business News',
|
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_business_news_64.xml'),
|
|
||||||
('Sport News',
|
|
||||||
'http://feeds.news.com.au/public/rss/2.0/bcm_sports_news_65.xml'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# This isn't perfect, but works rather better than it once did. To do - remove links to subscription content.
|
Binary file not shown.
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 835 B |
Loading…
x
Reference in New Issue
Block a user