View Full Version : Feature: Command Line News Fetch?


marcot
05-11-2010, 08:52 AM
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.

Starson17
05-11-2010, 09:37 AM
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.
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.

marcot
05-15-2010, 07:27 AM
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.

Bada Bing
03-04-2011, 07:56 AM
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.

Manichean
03-04-2011, 09:29 AM
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 ;)

kovidgoyal
03-04-2011, 11:56 AM
ebook-convert "title.recipe"

works just fine

Bada Bing
03-05-2011, 06:26 AM
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.