converting kindle books_ a painful process that works for reading kindle books without a kindle -...

32
Vancouver, WA, USA 3 hours ago Map Powered by Google Latitude Friday, July 11. 2008 Converting Kindle Books: a painful process that works for reading Kindle books without a Kindle Update: This tutorial is largely superseded by the much nicer and easier ‘Kindle For PC’ method: see it here. UPDATE 2: included Preston Lee’s online PID generator. D got a big fat tax refund, so she recently bought one of those new-fangled Amazon Kindle thingies for purchasing and reading books in an electronic form. (She loves it.) I like to read books in an electronic form on my iPhone, but find that it’s pretty hard to come by them legally; there are many different sellers and formats, some of which have certain books but not others. Sometimes they have the book, but not in a format I can do anything with. It’s generally easier just to illegally download them from torrent sites. Amazon has tons and tons of books available for Kindle, and have chosen the standard MobiPocket format as the one their reader uses, meaning it is theoretically trivial to purchase them and convert them to something else. Except that they won’t sell them to you unless you have already purchased a $400ish Kindle on which to read them. Meaning you don’t need to convert them… In any case, now that our household has a Kindle, it frees me up to purchase books from Amazon in Kindle format without actually having a Kindle myself. I then just remove the DRM that Amazon puts in the files (to keep people from converting them, natch), and then convert them to HTML or txt to read in Books.app on iPhone. Want to know how to do the same thing? Howto: Step 1) Find someone with a Kindle. Step 2) On their Kindle, go to the Settings menu, and type ‘411’ on the keypad. This will bring up a little information dialog with a bunch of things in it, of which you only need the Serial. It is a 16-character string of letters and numbers. Write it down. Step 3) Ask the Kindle’s owner to buy a book for you. Give them some money so you don’t look like a mooch. Once you’ve given them the money, ask them to log in to their Amazon account and navigate to their ‘Kindle Downloads‘ page from your computer. When they complain, mention that you’ve already given them money. The Kindle Downloads page will list all the books they’ve purchased, and yours should be right at the top. Click ‘Download to computer’ and you’ll get a file named ‘Title-of-Book.azw’ Step 4) Download MobiDeDRM.zip, which is a small suite of Python scripts that some kind soul wrote and then distributed through links that expire all the time and can be kind of a pain to track down. I’ve hosted them from my site so that they won’t expire. This .zip file contains mobidedrm.py, mobidedrm2.py, kindlepid.py and mobihuff.py. (These scripts require that you install Python on your system, which is something outside the scope of this howto. I’m on linux, but there’s a Python for Windows called “ActiveState Python.” Google will help.) After unzipping the archive, open up a terminal window and pass the Kindle’s serial # (which you previously wrote down) to kindlepid.py. Something like this: Search Chat with me Google Talk: [email protected] AIM: nyquiljer Yahoo! IM: nyquildotorg About the Author Jer Warren Mobile-addicted. Web- dependent. Android developer. Nerd. [email protected] @nyquildotorg 360-320-NERD [email protected] The author lives in Vancouver, Washington, USA with his girlfriend and a menagerie of cats, rats , fish, birds, guinea pigs and robots. Among other inanities, he strives to use investigative techniques to work young starlet breasts into every aspect of rational discourse — focusing on the discourse, thus making it not perverted. Also, has recently begun a career as “Internet hairstylist.” He can be contacted via email and Jabber IM at [email protected]’. He likes to be contacted. (All press inquiries, however, ought be directed towards the author’s agent, Alistair Hoel, via email to [email protected].)

Upload: shoshannah-forbes

Post on 28-Jul-2015

566 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Vancouver, WA, USA 3 hours ago Map Powered by Google Latitude

Friday, July 11. 2008

Converting Kindle Books: a painful process that works forreading Kindle books without a Kindle

Update: This tutorial is largely superseded by the much nicer and easier ‘Kindle For PC’ method: see it here.

UPDATE 2: included Preston Lee’s online PID generator.

D got a big fat tax refund, so she recently bought one of those new-fangled Amazon Kindle thingies forpurchasing and reading books in an electronic form. (She loves it.)

I like to read books in an electronic form on my iPhone, but find that it’s pretty hard to come by them legally;there are many different sellers and formats, some of which have certain books but not others. Sometimes theyhave the book, but not in a format I can do anything with. It’s generally easier just to illegally download themfrom torrent sites.

Amazon has tons and tons of books available for Kindle, and have chosen the standard MobiPocket format asthe one their reader uses, meaning it is theoretically trivial to purchase them and convert them to something else.Except that they won’t sell them to you unless you have already purchased a $400ish Kindle on which to readthem. Meaning you don’t need to convert them…

In any case, now that our household has a Kindle, it frees me up to purchase books from Amazon in Kindleformat without actually having a Kindle myself. I then just remove the DRM that Amazon puts in the files (tokeep people from converting them, natch), and then convert them to HTML or txt to read in Books.app oniPhone. Want to know how to do the same thing?

Howto:

Step 1) Find someone with a Kindle.

Step 2) On their Kindle, go to the Settings menu, and type ‘411’ on the keypad. This will bring up a littleinformation dialog with a bunch of things in it, of which you only need the Serial. It is a 16-character string ofletters and numbers. Write it down.

Step 3) Ask the Kindle’s owner to buy a book for you. Give them some money so you don’t look like a mooch.Once you’ve given them the money, ask them to log in to their Amazon account and navigate to their ‘KindleDownloads‘ page from your computer. When they complain, mention that you’ve already given them money.The Kindle Downloads page will list all the books they’ve purchased, and yours should be right at the top. Click‘Download to computer’ and you’ll get a file named ‘Title-of-Book.azw’

Step 4) Download MobiDeDRM.zip, which is a small suite of Python scripts that some kind soul wrote and then

distributed through links that expire all the time and can be kind of a pain to track down. I’ve hosted them frommy site so that they won’t expire. This .zip file contains mobidedrm.py, mobidedrm2.py, kindlepid.py andmobihuff.py.

(These scripts require that you install Python on your system, which is something outside the scope of thishowto. I’m on linux, but there’s a Python for Windows called “ActiveState Python.” Google will help.)

After unzipping the archive, open up a terminal window and pass the Kindle’s serial # (which you previouslywrote down) to kindlepid.py. Something like this:

Search

Chat with me

Google Talk:[email protected]

AIM:nyquiljer

Yahoo! IM:nyquildotorg

About theAuthor

Jer Warren

Mobile-addicted. Web-dependent. Androiddeveloper. Nerd.

[email protected]@nyquildotorg360-320-NERD

[email protected]

The author lives inVancouver, Washington,USA with his girlfriend anda menagerie of cats, rats,fish, birds, guinea pigs androbots.

Among other inanities, hestrives to use investigativetechniques to work youngstarlet breasts into everyaspect of rationaldiscourse — focusing onthe discourse, thus makingit not perverted. Also, hasrecently begun a career as“Internet hairstylist.”

He can be contacted via

email and Jabber IM at‘[email protected]’. He likesto be contacted.

(All press inquiries,however, ought be directedtowards the author’s agent,Alistair Hoel, via email [email protected].)

Page 2: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

python kindlepid.py XXXXXXXXXXXXXXXX

Where all those Xs are replaced with the Kindle serial number. It will return something that looks like this:

Mobipocked PID for Kindle serial# XXXXXXXXXXXXXXXX is Z1QFCDQ*74

Make note of that last 10-character gibberish.

The easiest way to get your PID (or secret code used to unlock the Kindle book) is to use Preston Lee’s onlineKindle PID generator. Simply follow the instructions there.

Now that you’ve got your PID, we’ll need to remove the DRM from any books purchased for that Kindle.

Step 5) Now it’s time to remove the DRM. Do this:

python mobidedrm.py Title-of-Book.azw Title-of-Book.mobi Z1QFCDQ*74

where my 10-character gibberish string is replaced with the one you made note of in the last step. This will takeabout a minute, and when it finishes you’ll see:

Decrypting. Please wait... done

Now you will have a decrypted MobiPocket-formatted ebook that you can read in any MobiPocket reader.

If, however, you want to convert it to HTML to read on any device you wish, you’ll want to install MobiPerl.(This, of course, will require you to install Perl. MobiPerl’s website will walk you through that.)

6) With MobiPerl installed, do this:

mobi2html Title-of-Book.mobi

This will create a directory named ‘unpacked’ that will contain Title-of-Book.html

Things that can go wrong:

Amazon seems to compress longer books in a slightly different manner than shorter books. If your resulting.mobi file and/or .html file are oddly gibberishy (for example, if the first line starts in the middle of a sentence,and clearly not the beginning of the book), let’s go back to step 5.

Step 5b) These ‘huffdic-compressed’ books require a slightly different script to remove the DRM. Do this:

python mobidedrm2.py Title-of-Book.azw Title-of-Book.mobi Z1QFCDQ*74

Note the ‘2’ in ‘mobidedrm2.py’ in this one and remember to replace my gibberish PID with yours.

6b) The ‘huffdic-compressed’ files also require a different script to convert them to HTML. Do this:

python mobihuff.py Title-of-Book.mobi Title-of-Book.html

This script will output the .html file in the directory from which you are running it.

All in all, this is as much of a pain as it looks, but the selection and availability of books on Amazon makes itworthwhile to me. They have far more books than The Pirate Bay does, and I feel better paying for them

Good luck.

Update: several readers have alerted me that there’s a much newer version of mobiDeDRM available. You candownload it here.

Defined tags for this entry: amazon, geeky, hacking, howto, iPhone, kindle

Comments: 144. Click to add/view.

Posted by [email protected] at 11:33

Winner* of SeanGleeson’s Researcher ofthe Century Award.

*: I’ve technically onlyearned 5/6ths of theaward, but maintain that Ideserve the whole thing.

Show ta gge de ntrie s

advertisements android Apple art australia batman Battlestar Galactica blogging books celebrity comics debunking documentaries drugs fast food found online geeky google hacking happenings health problems holidays howto inbreastigations inventions iphone I solved it movies music nerdy news open letters paranormal pets politics posters queries rants reviews science

Simon Pegg spam TAM4 the GIMP torrents travel tv wilford brimley wordplay zombies

Syndic a te ThisB log

RSS 2.0 feed ATOM 1.0 feed RSS 2.0 Comments

Page 3: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Related entries by tags:Helpful Hacks: tricking Google Buzz into letting you inConverting Amazon Kindle For PC Books Now PossibleGoogle Apps on Open Source Android: I Propose a Work-around to Google's Licensing

COMMENTSDisplay comments as (Linear | Threaded)

Comments to this entry via RSS

2008-08-02 21:25James said:

have you figured out how to do Topaz files yet?-James

#1 (Reply)

2008-08-08 23:52zac said:

Step 3) Ask the Kindle’s owner to buy a book for you

so uhh, jer, can i give you $20 to buy and convert:

http://kindleshops.com/1-1000-0486439917-Boy_Scouts_Handbook_The_First_Edition_1911_Dover_Books_on_Americana.html

for me?

#2 (Reply)

2008-08-13 12:49Brian said:

This is great! I’m sure it could be easily automated so that anyone could do it. As soon as everything gotinstalled, it would just be a matter of creating a gui that keeps track of IDs and runs the python and perl scriptsand then the process should be rather painless.

#3 (Reply)

2008-08-13 22:23Ale said:

Excellent article,thank you

#4 (Reply)

2008-08-21 00:12

Page 4: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2008-08-21 00:12farouk said:

thats brilliant :)

#5 (Reply)

2008-09-15 11:42Ms Deb said:

Thank you. That was remarkably easy to understand.

#6 (Reply)

2008-09-16 06:09Diane Gordon said:

Yes, what a pain! I’d like to be able to look at the occasional kindle document without having the friend with aKindle, cuz I don’t have one! I have read that one can change the files to pdfs somewhere. Thanks for info. I’mjust going to wait to pick up a used Kindle after they’re not so new.

#7 (Reply)

2009-02-02 13:27Christopher Armstrong said:

This is fantastic, thanks for posting the instructions. It’s actually not painful at all if you’re in my situation: I’ma happy Kindle owner who owns many Kindle books, but I want to make sure my DRMed books don’t becomeunreadable in 5 years when Amazon shuts down the Kindle product line (or whatever). I wrote a one-line shellscript to convert all my .azws en masse and now I’m protected from the future. Woot!

Oh, by the way, you don’t actually have to go to the "411" screen: the serial number is printed underneath thebattery cover on the back of the device. :-)

#8 (Reply)

2009-03-11 16:46Susan said:

I got as far as the actual conversion and getting invalid file format. I have a Kindle, so wanted to convert a book.The file when I downloaded to my computer was a .tpz. So then, I tried copying the one from my Kindle, but ithad a .azw1 extension. Then, I renamed to just .azw. Nothing worked. Any other ideas please? Thanks, Susan

#9 (Reply)

2009-03-12 13:49Elaine said:

Thank you! I had been reluctantly sucked into due to the ease of buying and reading books on the Kindlepurchased by my husband, but hated the DRM. I’ve now backed up five novels on my laptop and feel muchhappier about future purchases. I am viewing with Calibre on my Ubuntu system to verify that the books werecorrectly converted. In my case, I instructed the Kindle to move the books to a card, and then stuck copied fromthe card to my PC.

#10 (Reply)

Page 5: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-04-23 19:47Joshua said:

This is the EXACT same situation I am in, and appreciate the how-to, and now I don’t feel as worried aboutthe future of my digital books.

#10.1 (Reply)

2009-03-23 02:46Robert said:

Help!When I try tu run the script, I get an "Access Denied" reply!

#11 (Reply)

2009-06-03 12:[email protected] said:

Sounds like your python isn’t installed correctly?

#11.1 (Reply)

2009-04-11 16:57KC said:

Thanks so much for this. I have no problem paying for my content, but I really hate having to pay for it morethan once. I read on my Kindle, but I like having copies on other devices like my phone or my laptop.

#12 (Reply)

2009-04-20 07:14Anonymous Coward said:

This is a rather long process. It would be much better to modify & combine the scripts into a single script thatwill first try MobiDeDRM2, and then MobiDeDRM. I have this set up on my Mac, with a folder action definedfor .prc books (that’s the same as .azw for non-kindle owners). I also have it import the script into my ebookmanagement app (Calibre) in it’s non-DRM’d glory. All this happens automatically when I download the book.

#13 (Reply)

2009-10-22 04:15Jchan said:

Would you mind sharing your automator script with me?

#13.1 (Reply)

2009-04-21 06:09

Page 6: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-04-21 06:09Andrew said:

It’s worth noting that Igor also released kindlefix.py which allows conversion of Mobi books to AZW. This maybe useful for Kindle owners who will want to move their books to non US Kindles in due course. I have a USKindle and will buy a UK Kindle when it comes … and I cannot see Amazon converting my purchases ofunifying the accounts.

So, I’m hoping to use the instructions above to bust the DRM before using kindlefix to put back the format.

http://igorsk.blogspot.com/2007/12/mobipocket-books-on-kindle.html

#14 (Reply)

2009-04-24 07:45grendelkhan said:

Holy crap; I may actually get a Kindle and start buying books for it if I can strip the DRM and get a nice formatout of it. (I may not be able to afford it right now, but if I could, I’d be happy to fork over cash to the publishersif I get a nice, DRM-free MobiPocket file that I could back up for the indefinite future.)

I’d been on the fence on the issue before—I figured it was more like a rental service than an actual store, since,paraphrasing Mark Pilgrim: In the long run, the utility of all DRM’d media approaches zero. All DRM’d mediais a dead end.

#15 (Reply)

2009-05-04 09:29Marge said:

I am a beginner. I have downloaded ActivePython and I have downloaded and upzipped your scripts. I haveplaced the scripts in the Python26 folder and in the LIB folder in that folder but I keep getting a syntax error asthough it has not found the path. I have added the path to the original path with the set path= command.

What am I doing wrong? I don’t expect you to teach me the language but I would appreciate a clue. I have triedthe documentation but can’t seem too find the problem. In other words, I have done due diligence and am stillstumped

#16 (Reply)

2009-05-07 14:59Lucas said:

Marge,

I just did this and maybe I can offer this. I installed it activepython, and then went to a command prompt andran it as such:

python "C:\scripts\MobiDeDRM\mobidedrm.py" "C:\Books\Title-of-Book.azw" "C:\books\Title-of-Book.mobi" Z1QFCDQ*74

Be sure to use quotes, it won’t work without them. You can have your scripts and books in any folder youwant, as long as you reference them when running the script.

Page 7: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

want, as long as you reference them when running the script.

Good luck, and thanks for this walkthrough.. good stuff!

#16.1 (Reply)

2009-05-08 11:46Marge said:

Ypu are kind and wonderful – in case anyhone asks. It worked!!!

#16.1.1 (Reply)

2009-06-14 12:33Ken G said:

Lucas, Thanks so much for your suggestion regarding the quotation marks. After I finally got the pathproblems straightened out, I did as you suggested and …. got an "access is denied" message. I ran itusing mobidederm & mobidedrm2 with the same results. Anyone have any clue?

#16.1.2 (Reply)

2009-07-12 16:37Al said:

what I recommend is to create a folder on the desktop. Put the kindlepid.py and mobidedrm.py and thebook you want to convert in the same desktop folder. Then open windows cmd prompt. Then type asdescribed python kindlepid.py XXXXXXX, get your key and use the mobiderm as described above python mobidedrm.py Title-of-Book.azw Title-of-Book.mobi Z1QFCDQ*74. This can be done from thecmd prompt—but remeber to enter cd to created folder

Example in cmd prompt

C:\users\tomscomputer\cd

#16.1.3 (Reply)

2009-06-14 10:20Ken G said:

Marge,I have been having the same problem, I think, that you were having. Unfortunately, I can’t seem to figure outthe correct path. I copied the 4 python scripts to both the python 26 directory and the lib folder withing thepython 26 directory and no matter what I type in the command line, I keep getting the same error message:"no such file or directory". Can any body help?

#16.2 (Reply)

2009-05-05 10:38mike said:

I’m running windows xp and was able to complete the first part of obtaining the kindle PID but when I try to runthe mobidedrm part I get an error message saying (No such file or directory: ‘python’). The same thing happenswhen using mobidedrm2. Any suggestions?

#17 (Reply)

2009-05-07 15:[email protected] said:

Page 8: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

[email protected] said:

I’m unfamiliar with python on windows, but it seems like probably a path problem.

Today someone posted a comment on this post about how they got it working on windows, so you mighttake a look at it…

http://nyquil.org/archives/1128-comments.html#c3114

#17.1 (Reply)

2009-05-16 10:36mike said:

Thanks. It was a path problem. Just put everything in same directory and ran scripts from commandprompt. Everything works flawlessly. Now we just need to work on .tpz and life will be good.

#17.1.1 (Reply)

2009-05-25 04:07Campan said:

Thank you a lot for this guide! I’ll try to follow it.Do you think something has changed in the drm protection since the new kindle dx? Is the process always thesame?

#18 (Reply)

2009-05-26 18:08Arjan said:

I have the same problem both in Ubuntu and on Windows. I got the PID using the first step, but when I try tomobidedrm.py, I get:Error: no key found. Maybe the PID is incorrect.Any suggestions? Thanks!

#19 (Reply)

2009-06-03 11:[email protected] said:

What kind of file is the book? Amazon has a few new file formats that the script doesn’t work on. Maybeyours is one of those?

#19.1 (Reply)

2009-07-07 14:14Nobody said:

Arjan, had that problem until I realized that kindlepid.py is CASE SENSITIVE, so enter your serial # withletters in caps.

#19.2 (Reply)

2009-09-13 08:44Sameen said:

I am getting the same error. This used to work flawlessly for me. But I had to get a new iphone becausemy other one had a bad display. Since then I can’t get this to work. I tried entering my serial number in

Page 9: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

my other one had a bad display. Since then I can’t get this to work. I tried entering my serial number inlower case and all caps and neither PID works. Any other ideas?

#19.2.1 (Reply)

2009-11-30 03:18Ri said:

I’m also entering my S/N in all caps, but when I use the PID generated by kindlepid.py I get errors saying"Error: no key found. maybe the PID is incorrect"

My S/N begins with B002A1.

Any ideas on what I’m doing wrong or what the problem is?

#19.3 (Reply)

2009-05-27 07:32Awesome Possum said:

Great advice and tips, thank you SO much for this article.

However, I don’t live in America nor do I know anybody with a Kindle. Sad, really. It is now 2009 and Kindleservice is still only available in America. I can buy a Sony Reader and use it here in Canada (buy through theirlibrary, download free eBooks, rent eBooks from the library, etc), but if I want to BUY an Amazon eBook I’mtotally out of luck. If Amazon didn’t use this draconian DRM system they could easily topple any competitorand make them millions upon millions in world-wide sales. Instead they chose to run a closed-system. I’d haveno problem buying through them if I could read the book on any device I wanted. Sheesh.

And if they are just trying to protect the copyright integrity of their products… dream on. You can’t. There willalways be somebody willing to break it, and people willing to download it. However, I firmly believe that if youmake a quality product that people like and want to support, than they will buy it. Look at the music industry,they’ve been bitching about peer-to-peer sites for years, but they are still making record profits.

Anyway, I’ve gotten a little off-topic, but again I thank you for the article. Maybe one day Amazon will heedthe requests of would-be loyal customers from the international community.

#20 (Reply)

2009-06-02 17:30kat said:

After much trial and error and help from your comments, I finally got the script to produce a .mobi file. However,while everything seems to be working within python, I’m unable to read the .mobi file with Mobireader — itsays the file is corrupted. Does anyone have any idea what could be wrong? Thanks.

#21 (Reply)

2009-06-03 12:[email protected] said:

Have you tried it on other .azw files? I’m not really sure what the problem would be…

#21.1 (Reply)

2009-06-06 00:29Peter said:

Thanks for excellent and clear how-to article. I’ve been buying mobipocket books for couple of years. Myebook reader has limited search functionality and after switching to mac, i’ve lost the search functionalityavailable on full mobipocket reader. I hope i can now make research, cross-referencing and quotes on mypurchased, expensive books again…

Page 10: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

purchased, expensive books again…

Thank you!

P

#22 (Reply)

2009-06-12 20:03kid said:

since I don’t have a kindle I get the file from my ipod which is in the form .prc. Anyone got any idea how toremove the stupid drm from the prc file?

as far as I know this guide is for azw file.

When you write python mobidedrm… did you put that in the command prompt? I put it there and it said"python" is not recognized as an internal or external command.

#23 (Reply)

2009-07-10 18:43Ana said:

It will work just the same on a .prc file too. They are the same type of file, just named differently.

#23.1 (Reply)

2009-06-21 04:57BOB said:

Thanks for clear good advice. Works great with .azw files but not with azw1 books. Any ideas?

#24 (Reply)

2009-06-22 17:55Chris Snyder said:

Thanks for the writeup. I’ve seen those scripts floating around for a while, but had no idea how to puteverything together. I think the author was intentionally vague for some reason. ;-)

Too bad the DRM war seems to have escalated with the azw1 format.

#25 (Reply)

2009-06-26 07:23Sue said:

Wow this is brilliant. I don’t mind paying for the books, but it is annoying when the mobi prc books are a lotcheaper than the epub and adobe de books I can use on my Sony reader. I have just tested with a cheap DRMmobi book, and it worked perfectly, now I can read on my Sony!

#26 (Reply)

2009-06-27 17:58Brad Rice said:

Page 11: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Brad Rice said:

When I try to run kindlepid.py I get errors.

./kindlepid.py: line 1: import: command not found

./kindlepid.py: line 3: letters: command not found

./kindlepid.py: line 5: syntax error near unexpected token `(’

./kindlepid.py: line 5: `def crc32(s):’

I’m on mac os x. Any thoughts?

#27 (Reply)

2009-07-05 21:46Charles Ng said:

I have a quick question for you guys about Kindle DX.

Is it possible to open up the built-in web-browsers without turning on the Whispernet?

I am not located in the States but would like to use the Web browser to read some HTML files.

Another quickie is that is there a complete list of ‘cheat codes’ of Kindle DX like the alt-411 in Settings?

Thanks!

#28 (Reply)

2009-07-12 01:04Charles Ng said:

I recently bought a Kindle book for my Kindle DX. I open that up after transferring it thru USB, it prompts:

Unexpected Error

Anyone has any similar problems and solutions to it? I called the tech support and he just asked me to ship thatback, saying that it is a ‘software problem’.

Thanks!

-Charles

#29 (Reply)

2009-07-12 09:39None said:

I’m getting a year when I try to run the scripts after getting my mobi key.

\Python26\python.exe mobidedrm2.py TEST.azw1 TEST.mobi xxxXXXX*XXMobiDeDrm v0.02. Copyright© 2008 The Dark ReverserError: invalid file format

Anyone now why?

#30 (Reply)

Page 12: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-07-19 18:05John Boal said:

I have a Kindle DX. Where do i put in 411, or how else do I find the serial number? Thx btw!

#31 (Reply)

2009-09-04 14:[email protected] said:

I’ve not used the kindle dx, but the serial# is apparently printed on the back of the unit.

#31.1 (Reply)

2009-09-17 10:06Chris Patti said:

I found out from another site that, at least on the Kindle DX, you must hold down the ALT key while typing411 or 611.

#31.2 (Reply)

2009-07-20 08:33That Guy said:

A few comments:

If you use the Kindle Reader for the iPhone, you need to get your PID in a different fashion. First, you need toget the later version of the PID generator (search google for azw-0.2.zip, but that zipfile only contains the PIDgenerator, you still need the mobidedrm.py files linked in this post). To generate the PID, use the iphone’s UID.You can find this in iTunes when the phone is hooked up, or by looking in ~/Library/ApplicationSupport/MobileSync/Backup – the folder with the really long alphanumeric name. That alphanumeric is youriPhone’s UID, and the newer kindlepid program will generate your PID correctly.

Once you’ve gotten that, you can run mobidedrm on the kindle files. Rather than downloading them fromamazon, you can get them from your iphone backup. There’s a bunch of files in that MobileSync/Backup/foodirectory, but each mobi book is in its own mddata file. Just have to figure out which is which – if you open thefiles in emacs you can see, the name’s early in the file field, and each relevant binary file includes the stringBOOKMOBI, so you can just grep BOOKMOBI *mddata to figure out what files are what.

Any way you slice it, this will allow you to buy books from the Kindle store, download them to youriphone/itouch on the free kindle reader, and convert them to HTML/PDF if you’re more interested in readingthem on a different reader. For me, it’s mainly because I want to make sure i’ll be able to convert these files to amore portable format in the future, I’m not interested in spending a bunch of money on stuff that I’ll have to re-purchase in four years or whatever.

#32 (Reply)

Page 13: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-07-20 10:[email protected] said:

Hey, thanks for this info. I’ll edit the post to include a link to the new PID generator. Is the new generatorbackwards compatible, or does one need to use the new one just for iPhone and old one for non-iPhone?

Have you run across any books via iPhone that cannot be decrypted? I’ve been hearing from folks that anumber of newer Amazon Kindle books are in a different format. I suspect that they got lazy with theiriPhone app and have it only support the one format, and thus always send it decryptable files?

#32.1 (Reply)

2009-07-23 06:28derek said:

How do you download from Amazon to azw format…....all mine come in as tpz

#32.1.1 (Reply)

2009-08-12 04:45This Other Guy said:

Sorry for the long delay, I’ve been out of the country.

The new PID generator detects which kind of key you’re generating (since the iPhone and Kindle UUIDsare of different length).

I have not run into any non-decryptable iPhone-Kindle books, although I only have about ten, and mostof those are free (I’ve been waiting too see how the DRM plays out before I go hogwild). One of mybooks used the HUFFDIC compression, the rest were uncompressed. One suspects that this won’t changefor at least the iPhone books, since there’s not exactly any custom hardware built in to the iPhone fordecryption.

Future kindles could have some kind of TPM modules built in, I guess, but that would still leave olderkindles using the older decrypt routines, and as long as you’ve actually purchased the book (andtherefore know the decrypt key for it), there’s not a lot they can do short of changing their algorithms,which only works until someone figures out how they’re encrypting it in the new form.

#32.1.2 (Reply)

2009-07-22 18:21AggieJAG said:

I installed ActiveState on Vista and ran the first script, which provided my PID. I ran the second script and gotthis:

python mobidedrm.py BOOK-TITLE.azw BOOK-TITLE.mobi" XXXXXXX*XXMobiDeDrm v0.01. Copyright© 2008 The Dark ReverserError: Invalid PID checksum

Any clues? Thanks!

#33 (Reply)

2009-10-22 15:03ken said:

Page 14: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

ken said:

I am at the same point, but when I enter the command I get a message that says:

err no 13permission denied:‘name-of-book.mobi’

I have tried all the suggestions on this thread and was hoping you had another suggestion. Thank you, Ken

#33.1 (Reply)

2009-07-30 19:47revx said:

Just thought I’d drop a line to those interested, I made an easy, GUI, batch-capable wrapper for the pythonscripts. Nothing fancy, but it’s got its uses. http://www.mediafire.com/file/dlmkdzzzm2n/eBookUtility0.2.zipThis version has an exe wrapper and is pretty windows specific but if anyone wants it for a *nix platform I canput out a platform independent jar.

This PID generator that this uses doesn’t support the iPhone/iTouch, but if you have one that does you canalways drop it in instead.

#34 (Reply)

2009-08-29 12:38revx said:

Since I noticed my comment got approved here I thought I’d post an update. The program has come quites aways and works a lot better now (where as in some circumstances it wouldn’t work at all).

The current version is 0.4a which can be found at:http://www.mediafire.com/mykmlzwz3gm/eBookUtility0.4a.zip

#34.1 (Reply)

2009-09-16 07:57revx said:

People have been very helpful with feedback, here’s a version that has most of the major bugs squashed. Perrequest I’ll also be releasing a platform independent jar soon.

http://www.mediafire.com/file/mtwndjtzgzl/eBookUtility0.4b.zip

#34.2 (Reply)

2009-09-16 09:[email protected] said:

Awesome. Next time I need to convert a Kindle book I’ll give it a go.

(It doesn’t happen much these days.)

#34.2.1 (Reply)

2009-09-16 12:33John Boal said:

Page 15: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

John Boal said:

404, dead link…

#34.2.2 (Reply)

2009-09-18 10:21revx said:

Odd that you’re getting a deadlink, the files are all still up and active on mediafire.

I’m putting out a much improved version.

After a few weeks of development, I’m releasing version 0.5 of eBookUtility, in both a Windows exewrapped version and a platform independent jar.

Windows:http://www.mediafire.com/file/kwiwzwmntgj/eBookUtility0.5-win.zip

Platform Independent:http://www.mediafire.com/file/wjmr1j2zioh/eBookUtility0.5.zip

#34.2.3 (Reply)

2009-09-30 13:01revx said:

revx, great job! worked on mac with iphone kindle

thanks!

#34.2.3.1 (Reply)

2009-11-16 06:16Dan said:

In revx’s eBookUtility0.5-win.zip, after I put my Kindles serial number in and hit enter I get aresponse of "Cannot generated PIN, invalid serial number? DRM functionality won’t work." I’m sureI put my serial number in correctly. I did it several times and cross referenced with the the serialnumber on the kindle itself. So it must be something other than an incorrect serial number?? Cananyone help me with that? Very much appreciated!Thanks!! Dan

#34.2.3.2 (Reply)

2009-11-20 08:10Rusty Shackleford said:

This was awesome! Installed Python and ran your little gadget and "presto" all is good with theworld.

Thanks a million!

#34.2.3.3 (Reply)

2009-09-20 15:29Doesn'tMatter said:

Page 16: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Ok, just installed this along with Python and Revx, this was probably the easiest thing I’ve ever done.Way easier than the other way. Thank you!

Question: Let’s say, in time, I get a Sony reader…would these files that I have released from their DRMprison that I purchased from Azon be readable on the Sony reader now?

#34.2.4 (Reply)

2009-10-06 12:07revx said:

Once the DRM is stripped off you can pretty much convert it to any format you need to, so I wouldimagine it would work on a Sony reader just fine.

#34.2.4.1 (Reply)

2009-09-28 05:16Dave said:

A file to run on linux would be awesome.

#34.2.5 (Reply)

2009-10-06 12:04revx said:

Dave, the latest version was released in two flavors, the usual exe wrapped jar for windows and aplatform independent jar, I tested it on my linux and OSX machines, worked fine.

#34.2.5.1 (Reply)

2009-08-01 13:45Jaia said:

Help! I am running Windows Vista. I have tried everything (all versions of Python from 2.3.5 to 2.6) putting thekindlepid.py file on the desktop, in the python folder, in its own folder. I have used the Python Command Linewindow and the gui window. I have typed every combination of command I can think of (with "", without"",exact paths c:\python23\kindlepid.py B101XXXXXXXXX, etc…) And nothing works!! No matter what I try Iget a Syntax Error! I haven’t been this frustrated since the first time I tried to use Excel back in 1990’ish. Cansomeone help me?????

#35 (Reply)

2009-08-13 20:52Mike said:

Anyone figure out what to do with TPZ files? With mobidedrm and mobidedrm2 I get "invalid file format".

I found a mobidedrm005 around somewhere, but it gives me a "pid checksum error"

This is with files from a Kindle1 and a KindleDX.

#36 (Reply)

2009-08-25 14:44Brenda said:

Page 17: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Totally does not work! We need pictures apparently…

#37 (Reply)

2009-08-25 22:11Anon said:

As long as you don’t mind paying and you just want to read them on the iPhone, wouldn’t this be easier:http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000301301

#38 (Reply)

2009-08-26 17:[email protected] said:

Yes, that would be easier. But, if you check the date of posting, I wrote this up practically before there waseven an App Store, let alone it having a Kindle app :)

Now it would indeed be much easier if I just wanted to read it on iPhone.

#38.1 (Reply)

2009-08-26 16:14Andrew said:

A recent purchase of mine came in .tpz format, and the software hasn’t been able to process it. Is there any fix forthis? Is .tpz unbreakable so far?

#39 (Reply)

2009-10-07 21:01Janell said:

My K books are in .tpz format. Anyone have instructions on how to open these?

Thanks!

#39.1 (Reply)

2009-09-03 04:13Jeremy said:

Worked like a charm, thanks.

#40 (Reply)

2009-09-04 12:56Alfred said:

What do you do on a Mac?

#41 (Reply)

Page 18: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-09-04 14:[email protected] said:

You’ll need to install python for Mac, but other than that it’s the same.

#41.1 (Reply)

2009-09-10 12:57John Boal said:

i am getting the error "invalid encryption type 0" on a couple of books i purchased that are in azw format. usingthe "2" drm script. all the other books seemed to work fine. anyone have experience on this error? is there aworkaround? Thx all!

#42 (Reply)

2009-09-17 10:02Chris Patti said:

Rejoice! :) This just means that your book is DRM free. You can simply rename its extension to .mobi andread it with any Mobipocket compatible reader.

#42.1 (Reply)

2009-09-25 04:01IndyBart said:

I have the same issue, but with every book I’ve tried. All of my purchases have been since the beginning ofSept. I have a DX.

#42.2 (Reply)

2009-10-02 08:59Karen said:

Everything worked until I went to open the new DRM free files and one said it was corrupt and the other showed3 pages, but still locked up MobiReader.

Any ideas what went wrong?

I would love it if I could get this to work. Thanks for any help.

#43 (Reply)

2009-10-10 13:38dOOBY said:

Is there a problem with DX serial numbers and kindlepid.py? I’m getting an "unrecognized serial number" error,and I’m sure the serial number is right.

#44 (Reply)

2009-10-26 06:53revx said:

A quick google will turn up your answer, basically the script looks at the beginning of the serial providedand based off that immediately decides which type of serial was provided. Seeing as this script was a writtenbefore the DX was released, it doesn’t recognize the DX serial prefix, it’s merely a matter of adding about 3

Page 19: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

lines of code and it will properly generate PID’s from DX serials.

#44.1 (Reply)

2009-10-12 15:57Riptide said:

I’m attempting to find a way to convert a protected prc file (purchased at ebooks.com), into something that canbe used on my kindle… if someone has some insight that would be nice… riptide at tiomat dot com

Thanks!

#45 (Reply)

2009-10-23 15:18Alan said:

got python for vista and the mobi scripts. cannot for the life of me figure out how to run them. yes, i am a noviceand had never heard of python before. i get all the way to having a terminal but cannot get anything exceptsytax errors

#46 (Reply)

2009-10-24 04:01Alan said:

After taking more time to go through the threads, the key to using Windows is in Lucas’ (#16.1) above andusing quotes. Also, the mobidedrm2.py works for me but not the other. Has anyone created a script for the.tpz files yet? How about for reading on Stanza or converting from .azw to other formats other than .mobi?

#46.1 (Reply)

2009-10-27 06:59Riman said:

Thanks for this detailed guide. Unfortunately I can’t get past the first step of obtaining a PID. I have entered theSerial number exactly as it shows on the back of the Kindle and from 411, but I always get an unrecognizedserial number message. I have tried every combination of digit 0 and letter O possible with the same result. Am Imissing something?

#47 (Reply)

2009-11-13 15:26Anonymous said:

The command line is kindlepid serialnumber

Where the serial number has no spaces, all alphas must be capitalized and 0 are zeros, not alphas.

Hope that helps

#47.1 (Reply)

Page 20: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-10-29 07:04Brad said:

[email protected],

Thanks for all your work on this issue. I would like to read my Kindle purchases on a desktop ereader which hasa feature which the Kindles lack. I’m neither trying to steal books nor distribute them to anyone else, I just likeusing the AutoScroll feature for speed reading. Kindles don’t have AutoScroll.

I don’t own a Kindle, but I do have an iphone 3GS. I found the iphone backup folder in Windows but cannotidentify the Kindle book among all the files. A search for BOOKMOBI in the folder comes up empty. Can youhelp me find the Kindle file? Do I then need to convert it or alter it in some fashion before attemptimg to removethe DRM?

THANK YOU for your help.

#48 (Reply)

2009-10-29 09:38Mike said:

If your only desire is to read Kindle purchases on your computer, then you needn’t bother with de-drmanymore. Instead, try this: http://www.amazon.com/KindleforPC

#48.1 (Reply)

2009-10-30 12:38revx said:

@BradYou can download your ebook purchases to your computer from the Amazon website, it’s slightly hidden,but search around a bit, you’ll find the option.

You’ll also need to get a different version of the kindle pid script which will generate a PID from youriphone’s information.

#48.2 (Reply)

2009-10-30 06:20Ian said:

Thanks for this info, seems to work just fine on OS X for me with no further modification required.I’ve noticed that some of the formatting seems to be FUBAR in places with some titles – headings that shouldn’tbe headings for example.

#49 (Reply)

2009-11-04 10:51Project said:

Hi, I’ve just tried the scripts, thanks to the wonderful windows utility, but my Kindle serial is not recognized.

Page 21: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Cloud it be that since it’s a brand new International Kindle, his serial numbers are not (yet) supported). Thenumber start with B003

Thanks in advance for any help

#50 (Reply)

2009-11-10 10:10Tom said:

Wow… now that Kindle has released a PC version of the reader, I wonder how hard it will be to apply thisprocess to the PC.

Downloaded Kindle e-books are stored in My Documents\My Kindle Content as loose PRC files. Without aPID, though, I can’t decrypt those files.

I’m definitely going to watch this site and see what comes up. :)

#51 (Reply)

2009-11-13 06:58Aaron said:

Yes.Has anyone found out what the "PID" is for the Kindle PC reader.

#51.1 (Reply)

2009-12-06 05:24Ralph said:

I am also interested in fixing the Kindle for PC thing. I don’t have a Kindle, am using a PPC withMobiPocket Reader. Public Domain or free Ebooks work fine, but I found some free Ebooks at Amazon,and are DRM’d. Would like to be able to back them up. I can read the Amazon files on the PC (XP), butnot on my PPC (Pocket PC – IPaqq H5100). Have Python installed, have scripts, can get PC PID, but thisdoesn’t work with the scripts. Any ideas or help would be apprecuated Rhanks in advance :-)

#51.1.1 (Reply)

2009-12-11 14:[email protected] said:

I did figure out how to find the SID for the Kindle Desktop Reader, and kindlepid.py generates a PIDfrom it but I’m not having any luck with any of the PRC files it gives me.

To find the SID, view the source of

https://www.amazon.com/gp/digital/fiona/manage?ie=UTF8&ref_=kcp_pc_myk

and search for ‘sid’, it’ll look like this:

input name=\"sid\" type=\"hidden\" value=\"xxx-xxxxxxx-xxxxxxx\"

#51.1.1.1 (Reply)

Page 22: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2009-12-14 08:34GishDish said:

Jer, thanks for the tip:input name=\"sid\" type=\"hidden\" value=\"xxx-xxxxxxx-xxxxxxx\"

I was able to get the SID from there but it seems it’s in format that won’t work with kindlepid.py

The SID I got was xxx-xxxxxxx-xxxxxxx but kindlepid.py expects string that is 16 characterslong and starts with B001, B101, B002, B004. As you can see the string with numbers and dashesfrom the website is nothing like that.

Also, I talk about for the latest available version of kindlepid.py. The one that you have linked inthe article doesn’t check for the B001, B101, B002, B004 prefix but it also does not generate avalid PID. You can try to remove the dashes and your older version of kindlepid.py will stillgenerate PID but a different one. And also wrong.

I wonder if anyone tried to contact [email protected] directly on this issues?

Regards.

#51.1.1.1.1 (Reply)

2009-12-23 08:[email protected] said:

http://i-u2665-cabbages.blogspot.com/2009/12/circumventing-kindle-for-pc-drm.html

Some genius has done it, and fabulously.

#51.1.1.1.1.1 (Reply)

2009-11-20 14:16Bradley said:

Also very interested in seeing if this will work on Kindle for PC. I’m tempted to purchase a Kindle to ownmy files (I just use the iPhone app now) but I’d rather not.

#51.2 (Reply)

2009-11-24 09:59Jeff said:

I’ve tried this on the PC version, as I own an actual Kindle, got the serial and PID but keep getting an"invalid format" error regardless of which DRM script I run, the original or 2. Any suggestions?

#51.3 (Reply)

2009-11-24 10:26Jeff said:

The PID is generated for the Kindle by running the first script the the serial number found via the 411command or it’s found on the back:

python kindlepid.py XXXXXXXXXXXXXXXX

where the Xs are the serial number. This will then generate the PID for your Kindle.

#51.4 (Reply)

2009-11-15 17:13Dan said:

In your "Converting Kindle Books" article you say

In step 4 it says:

Page 23: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

In step 4 it says:

"Step 4) Download MobiDeDRM.zip,...This .zip file contains mobidedrm.py, mobidedrm2.py, kindlepid.py andmobihuff.py.

(These scripts require that you install Python on your system,....Python for Windows called “ActiveStatePython.” Google will help.)

After unzipping the archive, open up a terminal window and pass the Kindle’s serial # (which you previouslywrote down) to kindlepid.py. "

Well, I click on the kindlepid.py file and it opens for a fraction of a seconds and then disappears. I tried this overand over again to input te kindle serial number but and it did the same thing… it comes on for maybe 1/2second than is gone! Do you know what I’m doing wrong?

Thanks so much!

#52 (Reply)

2009-11-24 10:24Chris Patti said:

You need to run the script on the command line.

Open up a command prompt, navigate to where the script lives and run it that way, like this:

mobidedrm.py abc123

where abc123 is the pid.

Really, this process requires that you be familiar with running scripts from the command line, so if youaren’t, consider that your homework before you try the decryption process :)

#52.1 (Reply)

2010-01-06 21:27Kimberly said:

I have my gotten the latest version of the mobidedrm.py script. but very time i go to run it, I getpermission denied. Can someone help with this please? Thank you so much.

#52.1.1 (Reply)

2009-11-24 10:21Anonymous said:

Dan,As the good man said "...open up a terminal window…", if you can click on kindlepid.py you are using thewindows interface and you’re not in a terminal window.

#53 (Reply)

2009-11-25 04:32Dan said:

Page 24: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

I am not sure of all of this but can this work to remove DRM for the Kindle books someone else has purchaedand wants o lend to me to read on my Kindle. if so, I am not really good at the command prompts. I am awindows user and not sure how I would write this in in that format, can you help.

#54 (Reply)

2009-12-08 12:49andrew said:

Hi I purchase a kindle for PC book from amazon. I saw a brief mention of it in the thread. Has anybody figuredout how the DRM can be removed from the book so it can be read on the Sony ebook. Would seem as if the PIDis just not available. very dissapointing.I do not own a kindle.

#55 (Reply)

2009-12-13 18:47Josh Yates said:

Well…I can’t seem to get anything to work. I have Python 2.6 with the launcher. I use Terminal to do all of theabove things and I’m told that the path is incorrect and then I get an error telling me that I have invalid syntax.Can’t get the PID.

#56 (Reply)

2009-12-14 05:49jonah said:

Have you any ideas on how to get this done on a Mac? Thanks,

#57 (Reply)

2009-12-14 08:44Chris Patti said:

It works just dandy on a Mac. Python comes bundled with MacOS X (You are running MacOS X aren’t you?:)

Really folks, if you’re not comfortable using the command line (Terminal.app on a Mac) and runningPython scripts, you’ll need to get there first before you can accomplish the steps detailed in this article.

#57.1 (Reply)

2009-12-14 10:37Adriana said:

I’m new at this so I was wondering if anyone could tell me why i’m getting this error message"/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python:can’t open file ‘kindlepid.py’: [Errno 2] No such file or directory"I have the kindlepid.py doc on my mac. I dont understand what i’m doing wrong.

Please Help!

#58 (Reply)

2009-12-14 11:27Anonymous said:

How are you trying to run the script?

Page 25: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Try:

python kindlepid.py

#58.1 (Reply)

2009-12-14 13:44Adriana said:

If you mean what am i typing in the terminal it’s exactly what you just typed in. I’m following the stepsat the top of the page exactly, but i still get the error message.

Thanks

#58.1.1 (Reply)

2009-12-14 14:20Chris Patti said:

What happens if you just type:

python

and then hit return?

Following that, what is displayed if you type:

which python

from the command prompt?

Also, what version of OSX are you running? If you’re unsure what do you get when you run:

uname -a

#58.1.1.1 (Reply)

2009-12-14 19:49Adriana said:

I’ve looked at my sisters computer, I myself am not familiar with macs, and the file structure isnot something i’m used too.

The problem as I see it is that my sister has the 4 files that were downloaded (starting withkindlepid.py) on her desktop, and when you try to input the command "python kindlepid.pyXXXXXXXXXXXXXXXX" into the terminal it can’t find the file "kindlepid.py" and thus returnsthe error that was stated earlier in the thread.

So if you can tell us how to find the file where we need to load the files I’m sure we can overcome this problem.

#58.1.1.1.1 (Reply)

2009-12-14 14:14Adriana said:

sorry i figured it out but now i’m getting this message.

>>> python kindlepid.py xxxxxxxxxxxxxxxx File "", line 1 python kindlepid.py xxxxxxxxxxxxxxxx ^

Page 26: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

>>> python kindlepid.py xxxxxxxxxxxxxxxx File "", line 1 python kindlepid.py xxxxxxxxxxxxxxxx ^SyntaxError: invalid syntax>>>

Please Help!

#58.1.2 (Reply)

2009-12-15 12:27Chris Patti said:

Hi again Adriana – you’re super close!

Just substitute your Kindle’s serial number for all the xxxxx’s and you’re in business!

You have to read the instructions really carefully.

The command line is an awesome tool, but it requires careful, patient steps in order to make it work!

#58.1.2.1 (Reply)

2009-12-16 11:28Adriana said:

I did put the kindle serial number. I filled in the x’s just to post it on here. Which leaves me w/my original problem the error message as follows:

>>> python kindlepid.py xxxxxxxxxxxxxxxx File "", line 1 python kindlepid.pyxxxxxxxxxxxxxxxx ^SyntaxError: invalid syntax

Please Help!

#58.1.2.1.1 (Reply)

2009-12-14 14:43Adriana said:

I’m running Mac OSX 10.5.8. When i type python and hit enter i get this message

[GCC 4.0.1 (Apple Inc. build 5465)] on darwinType "help", "copyright", "credits" or "license" for more information.>>>

From what i understand that means python is running correctly. Is that correct?

Thanks

#59 (Reply)

2009-12-15 10:58Happyfoot said:

I am running the latest update of Snow Leapard osx… and have read this entire thread, but didn’t see anyreference to how to jailbreak kindle ebooks on my MacBook… I also thoroughly dislike the risk of buyingKindle books and not being able to back them or OR read them on another device other than my iPhone.

#60 (Reply)

2009-12-15 12:29Chris Patti said:

Happyfoot: Read the preceeding comments I left for Adriana. Run Terminal.app and then follow theinstructions in the article. Read the article carefully – use your brain, think things through, and try to sortout the little mis-steps you might make before posting here.

Page 27: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

It’s worth the effort, really!

#60.1 (Reply)

2009-12-17 19:03Adriana said:

I did type in the serial number for my kindle. I just substituted the serial for x’s b/c i didn’t want to postit here. Which leaves me with my initial problem the error message.

>>> python kindlepid.py xxxxxxxxxxxxxxxx File "", line 1 python kindlepid.py xxxxxxxxxxxxxxxx ^SyntaxError: invalid syntax

Please Help!

#60.1.1 (Reply)

2009-12-18 11:25Chris Patti said:

What happens if you type:

file kindlepid.py

Also, can you view the file and tell me what’s on line 1 please?

Thanks,-Chris

#60.1.1.1 (Reply)

2009-12-18 16:55Adriana said:

When i type python hit enter and then on the next line i type file kindlepid.py i get this:

>>> file kindlepid.py xxxxxxxxxxxxxxxx File "", line 1 file kindlepid.py xxxxxxxxxxxxxxxx ^SyntaxError: invalid syntax

If i open the terminal and type file kindlepid.py w/o typeing python i get this:

macintosh:~ Adri$ file kindlepid.pykindlepid.py: cannot open `kindlepid.py’ (No such file or directory)macintosh:~ Adri$

If i type it with my serial i get this:

macintosh:~ Adri$ file kindlepid.py xxxxxxxxxxxxxxxxkindlepid.py: cannot open `kindlepid.py’ (No such file or directory)xxxxxxxxxxxxxxxx: cannot open `xxxxxxxxxxxxxxxx’ (No such file or directory)macintosh:~ Adri$

These are the first few lines of the file:

import sys, binascii

letters = "ABCDEFGHIJKLMNPQRSTUVWXYZ123456789"

def crc32(s): return (~binascii.crc32(s,-1))&0xFFFFFFFF

Sorry if this is a little long but I wanted to give u the info you need to help me.

Thanks for your help!

Page 28: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

#60.1.1.1.1 (Reply)

2009-12-23 21:08Tommy said:

Adriana,

Originally, you said the 4 files were on your desktop. You are trying to run from terminal atthe root of your home folder (e.g. ~/). Open the terminal back up and change to your Desktop:

macintosh:~ Adri$ cd ~/Desktop

It should now show as:

macintosh:Desktop Adri$

Now, run the scripts as you have been trying to do. It should find the script now.

Hope this helps…

#60.1.1.1.1.1 (Reply)

2009-12-20 15:13Brightwing said:

I really need to know how to get the PID for Kindle on PC. I’ve purchased ne book and if I can cnvert that forSony eBook, then I’ll buy more.

#61 (Reply)

2009-12-23 11:52Tina Miller said:

I have used the advice and scripts to try tranforming a book purchased for "Kindle for PC" in order to read it onSony. Apparently, the script can’t correctly process the all numeric PID for "Kindle for PC." Can one of youscript gurus fix that? Thanks!

#62 (Reply)

2010-01-10 13:08slferris said:

I’m able to remove the DRM from a Kindle book following your instructions. However, I have need to convertthe book from .mobi to .html. I followed your link to MobiPerl, but the instructions there don’t work for me,specifically those covering the Mac.

I’m using Mac OS X 10.6.2 which came with Perl 5.10.0 installed. I’m also working with MobiPerl v.0.0.43. Theinstruction that doesn’t work for me is:

sudo cp Palm MobiPerl /opt/local/lib/perl5/site_perl/5.8.8

There are no such sub-directories on my iMac below /opt/local/lib (with or without 5.10.0 at the end). Is theresome other directory where I should copy Palm and MobiPerl? Relating to perl that I can find on my computerare the directory /Library/Perl and some perl executables in /usr/bin such as perl and perl5.10.0. Should I dosomething with any of these? I’m also wondering if I should be doing something with the "Makefile" I receivedwith MobiPerl.

I have tried to contact support from the MobiPerl developers, but so far with no luck. I know it’s a lot to ask, butif you can share any insight on this matter, I would appreciate it.

#63 (Reply)

Page 29: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2010-01-17 21:52Joe McPlumber said:

I inserted the extra lines to have my series "B003" number recognized, but i am no programmer and there are twoloops which return the same "unrecognized serial number" error. My script is failing on the second loop. I’veentered the serial like, 20 times on the theory that perhaps i was getting it wrong but after all that i am prettydarn certain i am not.

Help?

#64 (Reply)

2010-01-25 19:54Joe McPlumber said:

Maybe i should put it another way…

Assuming you have a Kindle 2, you’ve edited the script to accept your "B003" serial, you’re entering theserial correctly, and the script fails with "unrecognized serial number" on the second validation loop,

what might be the problem?

Thanks, – joe

#64.1 (Reply)

2010-01-25 17:35DG said:

I have used the method listed here as well as the ebook utility. I have the Kindle 2 and in both programs itcomes up with an invalid serial #. I am using the windows platform and have run it several times and get syntaxerrors in both instances. Assitance please, and I do know how to urn via dos which is where i ran python from.

#65 (Reply)

2010-02-03 10:33Preston Lee said:

Everyone: "This new web-based tool":http://kindletools.prestonlee.com/ effectively replaces the need for thekindlepid script. Should be much easier for some people than messing with the python command-line script…

http://kindletools.prestonlee.com/#66 (Reply)

2010-04-01 12:12Marc said:

I have recently purchased an International Kindle DX (version 2.3) and I am trying to find the PID. The serialnumber starts with B005 and the PrestonLee program does not work on it. Any ideas how I could establishwhat the PID is.

#66.1 (Reply)

2010-02-25 07:18Michael Walker said:

What happened to the old way that brought up the kindle for pc thing??

#67 (Reply)

Page 30: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2010-02-27 17:[email protected] said:

This way is actually the old way. The Kindle for PC way is still the best method for those that can use it.People on Macs or Linux still need to do it this old fashioned way.

#67.1 (Reply)

2010-02-28 14:45Bob Barnes said:

I’ve tried many times to use this method, and it always fails on my system. I’ve got a Mac running SnowLeopard, and was able to do everything up to step 5. All that happens when I try to run the mobidedrm.py scriptin terminal is a "No match" error message. I think it means it can’t find one of the files, but I’m not sure. I put theMobiDeDRM folder with the scripts in my homefolder and also moved the azw file there. I think the PID isright. I used both methods you gave and both PID’s match. I also renamed the azw file to tb.azw so it would beeasier to type. I also did a cd command to change to the MobiDeDRM folder. Here’s the command and theresponse:

[localhost:~/MobiDeDRM] rbarnes% python mobidedrm.py tb.azw tb.mobi A6XHCIW*5Qpython: No match.[localhost:~/MobiDeDRM] rbarnes%

I am completely stumped. Can you help me?

#68 (Reply)

2010-02-28 23:04DG said:

I have my PID code and have tried through python to remove the DRM and it keeps spitting nasty crud atme. Yes I have uninstalled and reinstalled it and made sure the files are where theya re suppose to be. 1question though, where exactly should I be placing the 3 extra files in python, there is really no instructionson what folder these should be under, I have trie dmoving them around and it just seem to like me very well.

#68.1 (Reply)

2010-03-18 09:23Paul Durrant said:

Go to

http://apprenticealf.wordpress.com/

and get the Calibre plug-in (if you use Calibre) or the Applescript. Either will allow you to decrypt withoutmucking about on the command line.

#68.2 (Reply)

2010-03-11 14:26ebook drm said:

you can try kindle PDF to convert it to PDF, it is easy

#69 (Reply)

Page 31: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

2010-03-27 09:19readHead said:

Do you have a link for this software, searches for Kindle PDF are a little vague. Thanks.

#69.1 (Reply)

2010-03-11 19:07MelDiva said:

I have an iPhone and I have the new Kindle for iPhone app (now available for Australians) and I justdownloaded a couple of books.

The problem is that kindle book 6 of this particular series was available to Australian users, but the kindle book4 was only for USA. So I registered a fake USA address to download book 4… which worked. BUT...

Obviously my credit card is not registered in USA, and thats probably why I got an email from amazon today

saying if I had recently moved country to supply them a copy of my passport

Now I am worried they will take my book away (don’t care about imprisonment for falsifying information). Iassume to be safe I should convert it to a ePub format and save it on my computer?

How do I do that? The process above is just for PCs? I also have a MAC, but the book was downloaded to myiPhone.

#70 (Reply)

2010-04-11 07:07jaffar said:

I dunno what to say, but i suggest you ask someone who lives in US to create an account+ add paymentmethod[us-based], then later on you add your master card or whatever and use it as default payment method,this way worked for me, I live in Saudi Arabia , the account is my brother’s who lives in US…

I heard from some friend that you can use vouchers to pay for electronic books in non-supported countries[of course you have to add valid us-based mail address]http://cute-nemo.blogspot.com/2009/03/how-to-buy-books-for-your-kindle.htmlhopes this could help,

#70.1 (Reply)Comments to this entry via RSS

ADD COMMENTName

Email

Homepage

In reply to [ Top level ]

CommentBBCode format allowedTextile-formatting allowedE-Mail addresses will not be displayed and will only be used for E-Mail notifications

Page 32: Converting Kindle Books_ a Painful Process That Works for Reading Kindle Books Without a Kindle - Nyquil

Gravatar supported

Remember Information? Subscribe to this entry

Submit Comment Preview

Type the two words: