mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-07 21:55:07 -05:00
58 lines
2.3 KiB
Python
58 lines
2.3 KiB
Python
import time
|
|
|
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
|
|
|
|
|
class ManilaStandardToday(BasicNewsRecipe):
|
|
title = u'Manila Standard Today'
|
|
custom_title = "Manila Standard Today - " + \
|
|
time.strftime('%d %b %Y %I:%M %p')
|
|
__author__ = 'jde'
|
|
__date__ = '06 June 2012'
|
|
__version__ = '1.0'
|
|
description = 'The Manila Standard Today is the fourth-largest broadsheet newspaper in the Philippines as of 2006. Initially established as the Manila Standard, it merged with another newspaper of record, Today, on March 6, 2005. It was the first newspaper merger in the Philippines.' # noqa
|
|
language = 'en_PH'
|
|
publisher = 'Manila Standard Today'
|
|
category = 'news, Philippines'
|
|
tags = 'news, Philippines'
|
|
cover_url = 'http://www.manilastandardtoday.com/wp-content/uploads/Manila-Standard-Today-June-06-12.jpg'
|
|
masthead_url = 'http://www.manilastandardtoday.com/wp-content/uploads/Manila-Standard-Today-June-06-12.jpg'
|
|
oldest_article = 1.5 # days
|
|
max_articles_per_feed = 25
|
|
simultaneous_downloads = 20
|
|
publication_type = 'newspaper'
|
|
timefmt = ' [%a, %d %b %Y %I:%M %p]'
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
encoding = None
|
|
recursions = 0
|
|
needs_subscription = False
|
|
remove_javascript = True
|
|
remove_empty_feeds = True
|
|
auto_cleanup = False
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'id': 'main'})
|
|
]
|
|
|
|
conversion_options = {'title': custom_title,
|
|
'comments': description,
|
|
'tags': tags,
|
|
'language': language,
|
|
'publisher': publisher,
|
|
'authors': publisher,
|
|
'smarten_punctuation': True
|
|
}
|
|
|
|
feeds = [
|
|
|
|
(u'Headlines', u'http://news.manilastandardtoday.com/feed/'),
|
|
(u'Nation', u'http://news.manilastandardtoday.com/archives/nation/feed/'),
|
|
(u'Business', u'http://business.manilastandardtoday.com/feed/'),
|
|
(u'Metro', u'http://news.manilastandardtoday.com/archives/metro/feed/'),
|
|
(u'Sports', u'http://sports.manilastandardtoday.com/feed/'),
|
|
(u'Entertainment', u'http://entertainment.manilastandardtoday.com/feed/'),
|
|
(u'Opinion', u'http://opinion.manilastandardtoday.com/feed/'),
|
|
(u'Lifestyle', u'http://lifestyle.manilastandardtoday.com/feed/')
|
|
]
|