![]() |
#1 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
ebook-convert myrecipe.recipe myrecipe.epub Last edited by Starson17; 05-11-2010 at 09:48 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
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
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,144
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ebook-convert "title.recipe"
works just fine |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fetch News Feature | Mike1963 | Calibre | 1 | 08-04-2010 10:05 AM |
Feature request: menu button: Fetch News | goblinbox | Calibre | 2 | 05-02-2010 06:04 AM |
Where are the command line tools? | PaulChernoch | Calibre | 17 | 10-23-2009 12:08 PM |
Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 12:17 PM |
Going completely command-line? | ewiplayer | Calibre | 2 | 11-24-2008 05:15 AM |