View Single Post
Old 01-21-2015, 05:45 PM   #1
ebrandon
Junior Member
ebrandon began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2015
Device: Kindle Voyage
Trying to make my first recipe

Hello everyone.

The Salon.com recipe built-in to Calibre only fetches the TV & Books sections, all the other sections it tries to fetch are missing. So, I'm trying to make my own Salon.com recipe.

I'm starting as simple as possible, with just one RSS feed but when Calibre fetches it the ebook is empty.

This is the feed http://www.salon.com/category/news/feed/rss/

and this is the recipe:
Code:
#!/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):
    title          = 'Salon Custom'
    oldest_article = 7
    max_articles_per_feed = 100
    auto_cleanup   = True

    feeds          = [
        ('News', 'http://www.salon.com/category/news/feed/rss/'),
    ]
I don't really see how to debug this -- there are no "break points" where I could print stuff out to a log and see what the problem is.

Thanks for your help!

Last edited by PeterT; 01-21-2015 at 05:49 PM. Reason: Wrapped recipe in [code]..[/code] so indentation is preserved
ebrandon is offline   Reply With Quote