11-28-2009, 08:34 PM | #1 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Get your Ebooks off your iPhone/Touch Stanza Library
For any other geeks out there:
If you want to backup the Stanza ebook collection on your iPhone or iPod Touch, here's a little Perl script called getfromstanza.pl that will do it for you. You just need to fill in the 3 pieces of info at the top of the file, make a directory where you'd like all your books to show up and then run the script from there: "perl getfromstanza.pl". The script figures out where they are on your device, downloads them all, figures out what books they are and renames them appropriately. They are renamed in a Calibre friendly format for those that use Calibre. I run it on an Ubuntu box and use it to put free ebooks I've downloaded on my iPhone into my Calibre server. The top of the file lists the Perl modules you'll need to run it. Google is your friend on setting up your environment and running Perl scripts. |
12-14-2009, 07:40 PM | #2 |
Tablet eReader
Posts: 45
Karma: 12620
Join Date: Dec 2009
Location: Western PA
Device: Samsung Galaxy Tab 7, iPad, Dell Streak 7, Moto RAZR MAXX
|
Sweet! Thanks!
|
Advert | |
|
01-11-2010, 05:16 AM | #3 |
Member
Posts: 11
Karma: 250
Join Date: Dec 2009
Location: Rio Vista, CA
Device: Kindle, iPhone
|
Net::OpenSSH won't work on Windows, even with Cygwin. Is there any way to do this on Windows possibly?
I was able to get all the modules installed for Perl on Ubuntu and the script finally ran without a Perl error. Problem is now the script says there are 0 books. I SSH'd directly into my iPhone and was able to grep the folders that contained the expanded epub files successfully, but the script still wouldn't pull anything off. I already made sure my SSH key for the iphone was installed before running the script also. I've been searching via Google like a madman but I'm stumped. I tried expanding and changing the wildcards for the path to the books on the device and that didn't help either. If you could provide any advice or help that would be great! Thank you for your time. - Brett (email removed) Last edited by frostcyborg; 01-12-2010 at 02:27 PM. Reason: Email Removed |
01-11-2010, 09:53 AM | #4 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Hi Brett,
I just ran it on another Ubuntu box and after editing the config. info at the top of the script and using "sudo cpan" to install the necessary modules (Net::OpenSSH, Term::ProgressBar, XML::Simple etc.) it ran and returned 0 books. I then ran "ssh -l root <iphone ip address or hostname>" from the command line, logged in, exited, ran the script again and it then worked fine. Give that a whirl and report back. P.S. I have no interest in running it on windows and am too busy right now but it shouldn't be hard for a motivated windows user to modify it to work under cygwin P.P.S. If you manually download all the books to a directory on your windows PC then comment out lines 123 to 143 it will do everything except get the books off your iphone. Last edited by RoninTech; 01-11-2010 at 10:01 AM. |
01-12-2010, 02:21 PM | #5 |
Member
Posts: 11
Karma: 250
Join Date: Dec 2009
Location: Rio Vista, CA
Device: Kindle, iPhone
|
I appreciate the response. I haven't been able to test out what you said yet, so I will do it again tonight. I forgot to put this in my original post, but I considered that the key wasn't added yet, so I had tried ssh directly to the iphone to make sure I could connect. I also used grep on the ssh connection on the iphone to check to see if it could find the epub files, which it could. I'll try it again on my Ubuntu box and see if that works. Thanks again!
|
Advert | |
|
03-08-2010, 05:49 PM | #6 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
If you don't want to mess with Jailbreaking you can use a program like iFunbox to get the files off your reader over USB then just comment out lines 123 to 143.
|
03-20-2010, 12:17 AM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2010
Device: Stanza
|
Whenever I run it, this is the script, this is what happens:
"Found 0 epubs on (Hostname) adobesynchronizersu80format error: can't find E0CD signature at (location) line 43 Can't call method "membersMatching" on an undefined value at (location) line 45" Help? Last edited by clowe1028; 03-20-2010 at 01:27 AM. |
03-20-2010, 12:54 AM | #8 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
You are missing progressbar module. Read my post above.
|
03-20-2010, 04:06 AM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2010
Device: Stanza
|
Thanks for those, now, my current problem is:
"Found 0 epubs on (Hostname) adobesynchronizersu80format error: can't find E0CD signature at (location) line 43 Can't call method "membersMatching" on an undefined value at (location) line 45" Thanks. Last edited by clowe1028; 03-20-2010 at 04:45 AM. |
03-20-2010, 12:13 PM | #10 | ||
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Quote:
Quote:
|
||
03-21-2010, 03:42 AM | #11 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2010
Device: Stanza
|
I did the three fill-it-up part, installed the necessary packages, or I think I did.
For the Command line part, attached is a screenshot. Thanks for the replies. |
03-21-2010, 09:04 AM | #12 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
0 - Reread the few posts above paying attention to what it says about Windows then slap forehead
1 - Download putty and ssh to your iphone 2 - Execute "find |grep epub" from the root directory on your iphone to get your path to stanza 3 - Execute "find <stanza_path> -type f |grep -E "([0-9]|orig)$" on your iphone replacing <stanza_path> with the path you found in 2 4a - Download WinSCP, connect to your iphone and download all the files you found in 3 to the directory you created on your windows machine containing my Perl script 4b - Alternatively grab iFunbox and use it instead to grab the files in 4a over USB 5 - Comment out lines 123 to 143 of my script and run it 6 - Profit |
03-22-2010, 01:17 AM | #13 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2010
Device: Stanza
|
I don't exactly get number 2. :| Sorry. Not familiar with those scripts or things like that.
|
03-22-2010, 10:27 AM | #14 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
|
03-24-2010, 02:10 PM | #15 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2010
Device: ipod
|
Hey when I put that in putty, and i get command not found.
-sh: find |grep epub: command not found |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Covers in Stanza on iPhone/iPod Touch | pietvo | Calibre | 3 | 07-25-2011 05:28 AM |
Stanza on Touch won't recognize Calibre library | PatNY | Calibre | 15 | 12-02-2010 10:16 AM |
Stanza on Touch won't recognize Calibre library | PatNY | Apple Devices | 2 | 07-25-2010 05:51 PM |
Script to Generate Stanza Online Catalog for your Iphone/Touch | RoninTech | Calibre | 117 | 09-05-2009 12:45 AM |
Loading Stanza on jailbroken iPhone/iPod Touch? | Robotech_Master | Apple Devices | 1 | 08-12-2009 04:57 PM |