View Single Post
Old 12-11-2018, 01:35 AM   #1
jamescridland
Member
jamescridland began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2018
Location: Brisbane, Australia
Device: Onyx Boox Poke3
Podnews podcasting news recipe - remove feed index?

I've created an (official!) feed from my daily podcasting newsletter, which I'd like to submit once I'm happy with it.

One question - clearly, this has only one feed in it, and I'd like to remove the initial feed index page that has simply one entry in it (marked "The latest updates"). How can I do that?

What else could I do to make this recipe better?

Code:
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1544505300(BasicNewsRecipe):
    title          = 'Podnews podcasting news'
    author         = 'podnews.net'
    publisher      = 'Amazingly Brilliant Pty Ltd'
    description    = 'Your daily news briefing for podcast and on-demand'
    category       = 'podcasting,podcast,business,technology,news'
    language       = 'en'
    oldest_article = 7
    max_articles_per_feed = 14
    auto_cleanup   = False
    cover_url      = 'https://podnews.net/_static/_furniture/front-cover-calibre.jpeg'
    compress_news_images = True
    scale_news_images_to_device = True
    summary_length = 15
    handle_gzip    = True
    remove_tags = [dict(name='small', attrs={})]
    use_embedded_content = True    
    
    feeds          = [
        ('The latest updates', 'https://podnews.net/rss'),
    ]
jamescridland is offline   Reply With Quote