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 05-11-2010, 09:52 AM   #1
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
Feature: Command Line News Fetch?

I have been using Justin Mason's Sitescooper (http://sitescooper.taint.org/) for years to do much of what Calibre does. Sitescooper is also written in Python, and is also a very fine program. As there has been no support for Sitescooper in years, I have been modifying the Python code and updating sitescooper's equivalent of Calibre's "recipies" to keep up with changes--until I found Calibre. I have looked over the manual and the fora, but I haven't found an answer to my question:

How can I use the command line to fetch particular (or all) recipes in my catalog?

Unlike the devices of perhaps most users of Calibre, my device (iPod Touch) has only occasional access to the Internet; I like to write scripts that will download content to my desktop and transfer it to my device during the night. I am happy to see the scheduling feature in the GUI, but I do not want to run Calibre all night long, if I could achieve the same functionality with the CLI on demand.

Any suggestions about how this could be achieved using the existing tools, or comments about whether it would be justified to add the feature to the CLI, would be much appreciated.
marcot is offline   Reply With Quote
Advert
Old 05-11-2010, 10:37 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by marcot View Post
How can I use the command line to fetch particular (or all) recipes in my catalog?
If you have your recipe in .recipe file form, this will do it.
Code:
ebook-convert myrecipe.recipe myrecipe.epub
If you run Calibre from source, all recipes are available in .recipe file form in the resources/recipes directory.

Last edited by Starson17; 05-11-2010 at 10:48 AM.
Starson17 is offline   Reply With Quote
Old 05-15-2010, 08:27 AM   #3
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
Thanks Starson! I should have read the manual more closely. I also should have read my original message more closely: Sitescooper is written in Perl, not Python.
marcot is offline   Reply With Quote
Old 03-04-2011, 08:56 AM   #4
Bada Bing
Junior Member
Bada Bing began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
Using the --list-recipes option I listed the available recipes. Among the titles there is one I'd like to use. But since in some cases the titles are different from the .recipe filenames, I just can't find the .recipe file corresponding to the tile I selected.

How can I find the .recipe file? My understanding is that you can only call ebook-convert with this file as a param and there is no way to simply use one of the titles listed.
Bada Bing is offline   Reply With Quote
Old 03-04-2011, 10:29 AM   #5
Manichean
Wizard
Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 84534
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Use your OS's search abilities to search for the recipe title within the files. Or just open the probable looking recipe files in a text editor and look for the name
Manichean is offline   Reply With Quote
Advert
Old 03-04-2011, 12:56 PM   #6
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: 29,994
Karma: 7679889
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert "title.recipe"

works just fine
kovidgoyal is offline   Reply With Quote
Old 03-05-2011, 07:26 AM   #7
Bada Bing
Junior Member
Bada Bing began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
Quote:
Originally Posted by Manichean View Post
Use your OS's search abilities to search for the recipe title within the files. Or just open the probable looking recipe files in a text editor and look for the name
Yes, that's what I did. Thanks for the tips.
Bada Bing 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
Fetch News Feature Mike1963 Calibre 1 08-04-2010 11:05 AM
Feature request: menu button: Fetch News goblinbox Calibre 2 05-02-2010 07:04 AM
Where are the command line tools? PaulChernoch Calibre 17 10-23-2009 01:08 PM
Why use the command line? slantybard Calibre 6 07-22-2009 01:17 PM
Going completely command-line? ewiplayer Calibre 2 11-24-2008 06:15 AM


All times are GMT -4. The time now is 03:30 PM.


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