02-17-2011, 05:15 AM | #1 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Jun 2010
Device: none
|
How do I use mobiunpack?
I know that this will seem like an incredibly stupid question but how do I use mobiunpack? What I need is a simple tutorial on how to run the script and where I have to put the name of the book etc. I have Python downloaded but I am not familiar with command line tools so the basics would be appreciated. I have seen on various threads that Calibre can unpack mobi files to get at the html but once again I have no idea how to do it. I do not want to use Calibre to convert to ePub etc because I want to look at the original raw html/css file and Calibre changes the css when it converts. Any help would be very much appreciated. Thank you.
|
02-17-2011, 08:44 AM | #2 |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Hi soparch
There's probably a more sophisticated way of doing it but this is what I do (I use Windows Vista, so specific commands are based on that): 1. Install Python of course. Only needs to be done once, then you can forget about it, except for updating as necessary. 2. Put mobiunpack.py and the MOBI file you want to unpack into the same directory. 3. Click on Start - All Programs - Accessories - Command Prompt to open a DOS window. 4. In the DOS window, use the CD (change directory) command to get to the directory where you placed the MOBI file and mobiunpack.py. "CD .." takes you up one level in the directory structure. "CD directory_name" will move you down into the named directory. 5. Type the following command: Code:
mobiunpack.py mobi_file_name.mobi Code:
mobiunpack.py mobi_file_name.mobi output_directory_name |
02-17-2011, 07:21 PM | #3 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Jun 2010
Device: none
|
Thank you once again Donna your help is much appreciated.
|
02-17-2011, 09:46 PM | #4 |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
No problem soparch - happy to be able to help.
|
02-18-2011, 11:31 AM | #5 |
Member
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
|
Hello All,
I too am trying to get mobiunpack to work.Trying to use mobiunpack.py the way suggested , does nothing.Trying to use MobiUnpack.pyw from "ebook-conversion-tools" gives me this error " Traceback (most recent call last): File "D:\Downloads\Downloads\ebook-conversion-tools\MobiML2HTML.pyw", line 11, in <module> import Tkinter ImportError: No module named Tkinter".I have python ver 32 installed and have used other python scripts that have worked. If anyone could help me in this matter ,I would greatly appreciate it. Thank you |
02-18-2011, 01:10 PM | #6 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Konrad, you're trying to use the GUI front-end for mobiunpack. The instructions above were for the command line version (which can be found in a subfolder close by). The command line version will end in .py not .pyw
The reason the GUI is not working for you is because you've installed a minimalist version of Python that apparently does not include the Tkinter module. I always recommend ActiveState's version of Python for Windows users (Python.org recommends ActiveState!). It comes with Tkinter and many other extensions that commonly come preinstalled on most Linux or Mac machines. |
02-18-2011, 06:17 PM | #7 |
Member
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
|
Thanks DiapDealer...I installed ActiveState's version of Python and everything is working fine now. Thanks very much for the info.
|
02-18-2011, 06:41 PM | #8 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Not a problem.
|
11-17-2011, 04:15 PM | #9 |
Member
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kobo
|
Well I'm still struggling. I have Active State Python 2.7 and if I do:
>>> mobiunpack.py infile.mobi it returns a syntax error and marks the "ïnfile" name of the file, no matter what I change it for. I don't use python, so I don't knnow what the error might be. |
11-17-2011, 08:29 PM | #10 |
Evangelist
Posts: 480
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
|
@aodor - MUST you use command line? I click on .pyw, browse to the prc file, click 'start' and voila!
For some reason program window shows only prc files, but no biggie - I just change .mobi to .prc and get it pried apart. |
11-17-2011, 08:50 PM | #11 | |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The drop-down box for "Files of type:" does default to *.prc, but you can easily click on it and select *.mobi, *.azw, or All (*.*) to show and select files with different extensions. |
|
11-19-2011, 08:57 AM | #12 |
Evangelist
Posts: 480
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
|
Not all, only those I want to work on...
I was so happy with getting my paws on html that I never even thought to look farther. THANK YOU, next time I'll look for the drop-down menu. I'm slow worker/reader anyways and have not unpacked lot of books yet. |