Thanks!
Thanks for the code to enable gzip unpacking! The recipe works now!
The only thing I wish I had now was some kind of de-duping code or option so that the same story didn't show up in multiple categories.
Anyway, here's a new recipe for Salon.com reflecting the current way their feeds are structured:
#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1421868592(BasicNewsRecipe):
def get_browser(self, *args, **kwargs):
br = BasicNewsRecipe.get_browser(self, *args, **kwargs)
br.set_handle_gzip(True)
return br
title = 'Salon'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
feeds = [
('News', 'http://www.salon.com/category/news/feed/rss/'),
('Politics', 'http://www.salon.com/category/politics/feed/rss/'),
('Business', 'http://www.salon.com/category/business/feed/rss/'),
('Technology', 'http://www.salon.com/category/technology/feed/rss/'),
('Innovation', 'http://www.salon.com/category/innovation/feed/rss/'),
('Sustainability', 'http://www.salon.com/category/sustainability/feed/rss/'),
('Entertainment', 'http://www.salon.com/category/entertainment/feed/rss/'),
('Life', 'http://www.salon.com/category/life/feed/rss/'),
]
|