mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Update Salon.com
This commit is contained in:
parent
01bab1b8de
commit
11f9e0f31a
@ -1,41 +1,30 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
|
# vim:fileencoding=utf-8
|
||||||
from __future__ import with_statement
|
from __future__ import unicode_literals, division, absolute_import, print_function
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
|
||||||
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
|
||||||
__docformat__ = 'restructuredtext en'
|
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class Salon_com(BasicNewsRecipe):
|
class Salon_com(BasicNewsRecipe):
|
||||||
title = 'Salon.com'
|
|
||||||
__author__ = 'Kovid Goyal'
|
|
||||||
description = 'Salon.com - Breaking news, opinion, politics, entertainment, sports and culture.'
|
|
||||||
timefmt = ' [%b %d, %Y]'
|
|
||||||
language = 'en'
|
|
||||||
|
|
||||||
|
title = 'Salon.com'
|
||||||
|
__author__ = 'ebrandon'
|
||||||
|
description = 'Salon.com - Breaking news, opinion, politics, entertainment, sports and culture.'
|
||||||
|
timefmt = ' [%b %d, %Y]'
|
||||||
|
language = 'en'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
auto_cleanup = True
|
auto_cleanup = True
|
||||||
auto_cleanup_keep = '//div[@class="art"]'
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('News & Politics', 'http://www.salon.com/category/news/feed/rss/'),
|
('News', 'http://www.salon.com/category/news/feed/rss/'),
|
||||||
('War Room', 'http://feeds.feedburner.com/salon/war_room'),
|
('Politics', 'http://www.salon.com/category/politics/feed/rss/'),
|
||||||
('Joan Walsh', 'http://feeds.feedburner.com/Salon_Joan_Walsh'),
|
('Business', 'http://www.salon.com/category/business/feed/rss/'),
|
||||||
('Glenn Greenwald', 'http://feeds.feedburner.com/salon/greenwald'),
|
('Technology', 'http://www.salon.com/category/technology/feed/rss/'),
|
||||||
('Tech & Business', 'http://feeds.salon.com/salon/tech'),
|
('Innovation', 'http://www.salon.com/category/innovation/feed/rss/'),
|
||||||
('Ask the Pilot', 'http://feeds.feedburner.com/salon/ask_the_pilot'),
|
('Sustainability', 'http://www.salon.com/category/sustainability/feed/rss/'),
|
||||||
('How World Works', 'http://feeds.feedburner.com/salon/htww'),
|
('Entertainment', 'http://www.salon.com/category/entertainment/feed/rss/'),
|
||||||
('Life', 'http://feeds.feedburner.com/salon/mwt'),
|
('Life', 'http://www.salon.com/category/life/feed/rss/'),
|
||||||
('Broadsheet', 'http://feeds.feedburner.com/salon/broadsheet'),
|
|
||||||
('Movie Reviews', 'http://feeds.feedburner.com/salon/movie_reviews'),
|
|
||||||
('Film Salon', 'http://feeds.feedburner.com/Salon/Film_Salon'),
|
|
||||||
('TV', 'http://feeds.feedburner.com/salon/tv'),
|
|
||||||
('Books', 'http://feeds.feedburner.com/salon/books')
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_browser(self, *args, **kwargs):
|
def get_browser(self, *args, **kwargs):
|
||||||
@ -43,6 +32,3 @@ class Salon_com(BasicNewsRecipe):
|
|||||||
br.set_handle_gzip(True)
|
br.set_handle_gzip(True)
|
||||||
return br
|
return br
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
return url + '/print/'
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user