Register Guidelines E-Books Today's Posts Search

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 03-29-2009, 04:27 PM   #406
Mnementh
Groupie
Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.
 
Mnementh's Avatar
 
Posts: 185
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
Quote:
Originally Posted by ilovejedd View Post
Looks like you're not specifying the source. Which recipe are you using? The first one in the post with the zip or the last one I posted which links to my own webserver?

Code:
def print_version(self, url):
    main, sep, rest = url.rpartition('/1/')
    rmain, rsep, storyid = main.rpartition('/s/')
    return 'http://localhost/flag/getstory.php?source=ffnet&format=news&storyid=' + storyid
Note source=ffnet is specifically stated in the url. This script can also be used for FictionPress, you just change source=ffnet to source=fpress.

The zip file should contain a print.php file which you can also use. That one automatically uses ffnet as source. Just change the recipe to the following:
Code:
def print_version(self, url):
    main, sep, rest = url.rpartition('/1/')
    rmain, rsep, storyid = main.rpartition('/s/')
    return 'http://localhost/flag/print.php?storyid=' + storyid
However, I'm not sure what version of the script is still attached in the zip file. I think that one still hasn't been fixed to reflect the crossover changes FanFiction.Net implemented. I suggest using the online version of the recipe in the meantime.
Hmmm okay, I think I might be getting a bit confused as to how these scripts work if I'm reading what you said correctly.

I was using the flag.zip from the first post, I didn't realise there was an online version (except for eyrad's (I think that was his username) but that's been down since I stumbled upon this).

I think I'm gonna have to read up some more on using recipes in calibre before bothering people with questions again lol. Basically what I want is to be able to input a story id somewhere and have the script pull down all the chapters and turn them into one file.

Thank you for your help
Mnementh is offline  
Old 03-29-2009, 04:38 PM   #407
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
The Calibre recipe is designed to retrieve a bunch of stories based on a feed. It's good if you want to, say, download all stories updated within the last few days or download all the stories by an author. For downloading individual stories, not so good.

If you just need to output individual stories to html, you can use the following URL:
Code:
http://www.utterlyinsane.org/fflag/print.php?storyid=#######
Where ####### is the storyid. There's also a PHP script included in the ZIP file that you can use in command line mode.

"C:\xampp\php\php.exe" "C:\xampp\htdocs\flag\fflag" -s ffnet -i storyid -f format -o filename.ext

So far, currently supported formats include html, epub and lrf. Both epub and lrf formats require Calibre to be installed. I should be able to add support for other output formats supported by Calibre.

P.S.
For non-Calibre recipe inquiries (e.g. problems with the PHP script), please post on the FLAG thread in the future. I don't think it's good to continue cluttering up this thread with unrelated discussion.

Last edited by ilovejedd; 03-29-2009 at 06:28 PM.
ilovejedd is offline  
Advert
Old 03-29-2009, 04:52 PM   #408
Mnementh
Groupie
Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.Mnementh ought to be getting tired of karma fortunes by now.
 
Mnementh's Avatar
 
Posts: 185
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
That is brilliant that's exactly what I'm looking for thank you.

I've now managed to get my head around how the recipes work after your previous post, the only problem I had was it put all the books into one big file which wasn't quite what I'm after, this will sort the problem perfectly thank you.

Edit: When trying to use the URL you posted I get a 404. (I'm changing the storid not leaving the hashes )

On a side note when trying to use the CLI php.exe crashes for some reason when trying to create the epub file (can't do lrf as Stanza won't read it) is this format supported or should i reinstall php? Just want to check before going through the hassle of reinstalling.

Sorry for all the questions and sorry to everybody if this is OT

Edit 2: gah just saw your edit lol, i will take this to that thread thanks.

Last edited by Mnementh; 03-29-2009 at 05:08 PM.
Mnementh is offline  
Old 03-30-2009, 01:52 AM   #409
iNdioNicarao
Junior Member
iNdioNicarao began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2009
Device: PRS-505
Thanks!

Quote:
Originally Posted by kiklop74 View Post
Actually it was not that hard as I thought:

La Prensa - Nicaragua

Thank you very much sir!

I appreciate it.
iNdioNicarao is offline  
Old 03-30-2009, 08:34 PM   #410
MelC
Evangelist
MelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it is
 
MelC's Avatar
 
Posts: 410
Karma: 2081
Join Date: Feb 2009
Location: Toronto, Canada
Device: Cybook Gen3, PRS600
Quote:
Originally Posted by kiklop74 View Post
Try this recipe for Metronews:
Can someone tell me how do I add this to the existing selections for fetch news in 0.5.3?

Mel
MelC is offline  
Advert
Old 03-31-2009, 06:30 AM   #411
donCalpe
Junior Member
donCalpe began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2008
Device: iRex DR1000S
@kovidgoyal
Thanks for the tip, I will give it a try today.
donCalpe is offline  
Old 04-01-2009, 02:12 AM   #412
Darqref
space cadet
Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.
 
Posts: 334
Karma: 2999999
Join Date: Aug 2007
Location: Seattle area
Device: Rocket PRO, gen3, Pocketbook360
I'm using the standard included recipe for the Christian Science Monitor (and my breakthrough reason for starting to use Calibre is that the Monitor just converted to online only for daily news). I'm finding that there are blank pages at the beginning, so when I select the book on my cybook it looks like nothing happens - I have to page forward a couple times before I get to the Toc.

Any easy way to automatically get rid of the blank page? (After looking at this in Calibre's viewer of the Epub version, I *think* the blank page is still there, so it shouldn't be an artifact of the conversion to mobi.)

And, is there an easy way to tell Calibre to use a standard image as the cover image to go with the resulting book?
Darqref is offline  
Old 04-01-2009, 02:16 AM   #413
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,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this blank page is after the cover?
kovidgoyal is offline  
Old 04-02-2009, 01:18 AM   #414
Darqref
space cadet
Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.Darqref ought to be getting tired of karma fortunes by now.
 
Posts: 334
Karma: 2999999
Join Date: Aug 2007
Location: Seattle area
Device: Rocket PRO, gen3, Pocketbook360
Quote:
Originally Posted by kovidgoyal View Post
this blank page is after the cover?
No, there wasn't a cover. I looked on the Monitor's website, and there really isn't a good image that would work as a cover. I went back to a print edition from weeks ago and tried to grab a logo to use as a default cover, and just wanted to know how to make the recipe grab it from my hard drive.

Now I've looked at the recipe results a little closer, and it seems incomplete. It uses the text edition page, but currently (at least so far this week, anyway) it doesn't actually list all the articles that normally would be included in the day's "edition". I trying to play a little bit with a new recipe to go off the rss feeds instead, but I'm gonna be slow at this. And I'm also going to send a note to the editors to see if they can't get the complete article list back on the Text Edition page. Could be just a product of not actually producing a paper edition this week.

The blank page I was seeing is after where I would expect a cover to display. In the calibre viewer I had to page forward three times to get to the toc. On my cybook, I had to page forward twice, I think.
Darqref is offline  
Old 04-02-2009, 01:18 PM   #415
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,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the cover problem is a regression try re-downloading the latest calibre build (unless you're on linux, then you'll have to wait till the next release).
kovidgoyal is offline  
Old 04-02-2009, 03:07 PM   #416
MelC
Evangelist
MelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it isMelC knows what time it is
 
MelC's Avatar
 
Posts: 410
Karma: 2081
Join Date: Feb 2009
Location: Toronto, Canada
Device: Cybook Gen3, PRS600
Bump

Quote:
Originally Posted by MelC View Post
Can someone tell me how do I add this to the existing selections for fetch news in 0.5.3?

Mel
Looking for a how-to add recipes description. Not up to creating a recipe as yet but this one looks like something I could use. However, the description on the Calibre website shows a screenshot which doesn't appear anywhere in my version (the latest) of Calibre for Mac OS. In particular I can't find any tabs or buttons for Advanced Options under Fetch News or Settings.

Thanks.

Mel
MelC is offline  
Old 04-02-2009, 03:26 PM   #417
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,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Click the arrow next to the fetch news button and select add a custom news source, then click the advanced mode button and paste the recipe in
kovidgoyal is offline  
Old 04-03-2009, 04:38 PM   #418
scwehrl
Member
scwehrl began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2008
Device: prs505
Washington Post recipe ('Nation', 'http://www.http://www.washingtonpost.com/wp-dyn...tion/index.xml'), needs to be ('Nation', 'http://www.washingtonpost.com/wp-dyn/rss/nation/index.xml'), ? (consistently shows as a failed feed)
scwehrl is offline  
Old 04-03-2009, 08:39 PM   #419
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,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm I can't see any difference between the two links??
kovidgoyal is offline  
Old 04-03-2009, 10:29 PM   #420
bds4242
Junior Member
bds4242 began at the beginning.
 
Posts: 6
Karma: 14
Join Date: Mar 2009
Device: Kindle 2
I would love some help with this feed for our local newspaper. When I just try the default news recipe the resultant book just lists 'you need to be signed in' for all the articles.

Thanks in advance for any help!

http://rss.azstarnet.com/index.php?site=metro
bds4242 is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom column read ? pchrist7 Calibre 2 10-04-2010 02:52 AM
Archive for custom screensavers sleeplessdave Amazon Kindle 1 07-07-2010 12:33 PM
How to back up preferences and custom recipes? greenapple Calibre 3 03-29-2010 05:08 AM
Donations for Custom Recipes ddavtian Calibre 5 01-23-2010 04:54 PM
Help understanding custom recipes andersent Calibre 0 12-17-2009 02:37 PM


All times are GMT -4. The time now is 06:03 AM.


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