mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
New recipe for The Week magazine by Darko Miletic
This commit is contained in:
parent
e47d04693d
commit
ba693e77a4
@ -122,6 +122,9 @@
|
|||||||
- title: Editor and Publisher
|
- title: Editor and Publisher
|
||||||
author: XanthanGum
|
author: XanthanGum
|
||||||
|
|
||||||
|
- title: The Week (free)
|
||||||
|
author: Darko Miletic
|
||||||
|
|
||||||
improved recipes:
|
improved recipes:
|
||||||
- Physics Today
|
- Physics Today
|
||||||
- Wall Street Journal
|
- Wall Street Journal
|
||||||
|
BIN
resources/images/news/the_week_magazine_free.png
Normal file
BIN
resources/images/news/the_week_magazine_free.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 301 B |
49
resources/recipes/the_week_magazine_free.recipe
Normal file
49
resources/recipes/the_week_magazine_free.recipe
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
www.theweek.com
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class TheWeekFree(BasicNewsRecipe):
|
||||||
|
title = 'The Week Magazine - Free content'
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = "The best of the US and international media. Daily coverage of commentary and analysis of the day's events, as well as arts, entertainment, people and gossip, and political cartoons."
|
||||||
|
publisher = 'The Week Publications, Inc.'
|
||||||
|
category = 'news, politics, USA'
|
||||||
|
oldest_article = 7
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'utf-8'
|
||||||
|
use_embedded_content = False
|
||||||
|
language = 'en'
|
||||||
|
|
||||||
|
conversion_options = {
|
||||||
|
'comment' : description
|
||||||
|
, 'tags' : category
|
||||||
|
, 'publisher' : publisher
|
||||||
|
, 'language' : language
|
||||||
|
}
|
||||||
|
|
||||||
|
keep_only_tags = [
|
||||||
|
dict(name=['h1','h2'])
|
||||||
|
, dict(name='div', attrs={'class':'basefont'})
|
||||||
|
, dict(name='div', attrs={'id':'slideshowLoader'})
|
||||||
|
]
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='div', attrs={'id':['digg_dugg','articleRight','dateHeader']})
|
||||||
|
,dict(name=['object','embed','iframe'])
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'News & Opinions' , u'http://www.theweek.com/section/index/news_opinion.rss')
|
||||||
|
,(u'Arts & Leisure' , u'http://www.theweek.com/section/index/arts_leisure.rss')
|
||||||
|
,(u'Business' , u'http://www.theweek.com/section/index/business.rss' )
|
||||||
|
,(u'Cartoon & Short takes' , u'http://www.theweek.com/section/index/cartoons_wit.rss')
|
||||||
|
]
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user