mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
www.digitalspy.co.uk
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class DigitalSpyUK(BasicNewsRecipe):
|
|
title = 'Digital Spy - UK Edition'
|
|
__author__ = 'Darko Miletic'
|
|
description = 'Entertainment news about the biggest TV shows, films and celebrities, updated around the clock.'
|
|
publisher = 'Digital Spy Limited.'
|
|
category = 'news, showbiz, big brother, x factor, torchwood, doctor who, tv, media, sky, freeview, cable'
|
|
oldest_article = 2
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
encoding = 'cp1252'
|
|
use_embedded_content = False
|
|
language = 'en_GB'
|
|
remove_empty_feeds = True
|
|
extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} .info{font-size: small} '
|
|
|
|
conversion_options = {
|
|
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
|
|
}
|
|
|
|
remove_tags = [dict(name=['link'])]
|
|
remove_attributes = ['height', 'width']
|
|
keep_only_tags = [dict(name='div', attrs={'id': 'content'})]
|
|
|
|
feeds = [
|
|
|
|
(u'News', u'http://www.digitalspy.co.uk/rss/zones/gb/all.xml'),
|
|
(u'Big Brother', u'http://www.digitalspy.co.uk/rss/zones/gb/bigbrother.xml'),
|
|
(u'Entertainment', u'http://www.digitalspy.co.uk/rss/zones/gb/entertainment.xml'),
|
|
(u'General', u'http://www.digitalspy.co.uk/rss/zones/gb/general.xml'),
|
|
(u'Media', u'http://www.digitalspy.co.uk/rss/zones/gb/media.xml')
|
|
]
|