Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2019, 12:48 PM   #1
TimHare
Junior Member
TimHare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite
Updating information on retrieved news?

I started with the basic recipe to retrieve news from the RSS feed of the Florida Phoenix and send it to my Kindle Paperwhite. It works well, but I would like the author and/or publisher to show as 'Florida Phoenix'. How do I modify the recipe to do this?
TimHare is offline   Reply With Quote
Old 01-18-2019, 08:55 PM   #2
TimHare
Junior Member
TimHare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite
Here is the recipe as I tried to customize it after creating it in the basic mode. I added the description, author, and publisher lines

#!/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 AdvancedUserRecipe1547443791(BasicNewsRecipe):
title = 'Florida Phoenix'
description = 'Quality Journalism for Critical Times'
author = 'Florida Phoenix'
publisher = 'Florida Phoenix'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True

feeds = [
('Florida Phoenix RSS feed', 'https://www.floridaphoenix.com/feed/'),
]
TimHare is offline   Reply With Quote
Old 01-18-2019, 09:57 PM   #3
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: 34,334
Karma: 10323932
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot change the author, if you want to set the publisher, use

conversion_options = {'publisher': publisher}
kovidgoyal is offline   Reply With Quote
Old 01-19-2019, 01:29 PM   #4
TimHare
Junior Member
TimHare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2019
Device: Kindle Paperwhite
Thanks. That worked.
TimHare is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with updating recipes for Slovak news lcask Recipes 1 02-12-2012 12:16 PM
Web server not updating when news have been collected TomasG Calibre 0 02-07-2012 04:24 PM
Blogspot Feeds not retrieved by Calibre jomaweb Calibre 12 01-29-2010 10:24 AM
Retrieved news feeds can't be downloaded to Stanza on iPhone bthoven Calibre 0 10-27-2009 12:08 AM
Updating RSS-news on the reader dsip Calibre 3 03-24-2009 05:54 PM


All times are GMT -4. The time now is 01:22 PM.


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