Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
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
Old 12-11-2018, 03:00 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,360
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
if the destination format supports it calibre willautomatically remove the top level feed if there is only one. Some formats such as the kindle ones require a two level toc for periodicals.
kovidgoyal is online now   Reply With Quote
Advert
Old 12-11-2018, 06:12 PM   #3
jamescridland
Member
jamescridland began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2018
Location: Brisbane, Australia
Device: Onyx Boox Poke3
Quote:
Originally Posted by kovidgoyal View Post
if the destination format supports it
OK - I'm using epub/Kobo, and it's a little ugly.

I wonder if I can build it in a different way - it's all my own content, so perhaps I should be producing a few little APIs for Calibre to make it look nice.

I wonder if there are any examples of daily newsletters within Calibre that I should be looking at?
jamescridland is offline   Reply With Quote
Old 12-11-2018, 08:21 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,360
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
almost all calibre recipes work by scraping websites, they dont use dedicated APIs, but if yu want to use them, feel free, you can do pretty much anything yu want in a calibre recipe, all the behaviors are fundamentally overridable.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove captions from news feed vinny3777 Recipes 0 06-05-2014 07:59 PM
Remove unwanted news feed MacNala Recipes 2 07-28-2013 04:50 AM
Den of Geek Recipe (Nerdy News Feed) mrjaded Recipes 0 09-25-2011 11:10 AM
how to remove Table of Contents at the end of news feed TonytheBookworm Calibre 4 09-21-2010 10:19 AM
How to remove dates from news feed vega07 Calibre 11 07-26-2010 06:25 PM


All times are GMT -4. The time now is 10:04 PM.


MobileRead.com is a privately owned, operated and funded community.