New Version of iphone whatsapp cant be extract
GoogleCodeExporter opened this issue · comments
the error:
Traceback (most recent call last):
File "C:\Program Files\Python27\Whatsapp_Xtract_V2.1_2012-05-10-2\whatsapp_xtr
act.py", line 2691, in <module>
main(sys.argv[1:])
File "C:\Program Files\Python27\Whatsapp_Xtract_V2.1_2012-05-10-2\whatsapp_xtr
act.py", line 1850, in main
curr_message = Message(msgs["Z_PK"],msgs["ZISFROMME"],msgs["ZMESSAGEDATE"],m
sgs["ZTEXT"],contactfrom,msgs["ZPUSHNAME"],msgs["ZMESSAGESTATUS"],media["ZMEDIAL
OCALPATH"],media["ZMEDIAURL"],media["ZTHUMBNAILDATA"],ZXMPPTHUMBPATH,mediawatype
,media["ZFILESIZE"],media["ZLATITUDE"],media["ZLONGITUDE"],media["ZVCARDNAME"],m
edia["ZVCARDSTRING"])
IndexError: No item with that key
Would anyone fix this, so that the script can be working again, thanks
i am using iphone whatsapp version 2.11.6
Original issue reported on code.google.com by lobill...@gmail.com
on 10 Dec 2013 at 9:32
same problem over here
Original comment by malique....@hotmail.com
on 31 Dec 2013 at 1:21
Quick workaround, probably they just changed the tag, but I don't have time
right now to look into it:
http://forum.xda-developers.com/showpost.php?p=48673538&postcount=793
This is what the post says:
"
Found a Fix for the New Whatsapp on iPhone in the Thread:
Just locate in the Xtract folder the file named whatsapp_xtract.py and hove
over to line number 1667 (which reads as follows):
curr_message =
Message(msgs["Z_PK"],msgs["ZISFROMME"],msgs["ZMESSAGEDATE"],msgs["ZTEXT"],contac
tfrom,msgs["ZMESSAGESTATUS"],media["ZMEDIALOCALPATH"],media["ZMEDIAURL"],media["
ZTHUMBNAILDATA"],ZXMPPTHUMBPATH,mediawatype,media["ZFILESIZE"],media["ZLATITUDE"
],media["ZLONGITUDE"],media["ZVCARDNAME"],media["ZVCARDSTRING"])
Replace the word "media["ZTHUMBNAILDATA"]" in the above line with "None".
So. See the Yellow Color. None, not none:
curr_message =
Message(msgs["Z_PK"],msgs["ZISFROMME"],msgs["ZMESSAGEDATE"],msgs["ZTEXT"],contac
tfrom,msgs["ZMESSAGESTATUS"],media["ZMEDIALOCALPATH"],media["ZMEDIAURL"],None,ZX
MPPTHUMBPATH,mediawatype,media["ZFILESIZE"],media["ZLATITUDE"],media["ZLONGITUDE
"],media["ZVCARDNAME"],media["ZVCARDSTRING"])
"
Original comment by sulokuTDCmago@gmail.com
on 4 Jan 2014 at 11:41
Thanks a lot sulokuTDCmago, your workaround saved my day! Works fine for me.
Original comment by jb.kdenl...@gmail.com
on 20 Jan 2014 at 8:20
Some Entries for Thumbnails-LocalPath and the LocalPath for the Mediafile
(Table ZWAMEDIAITEM Column ZXMPPTHUMBPATH and ZMEDIALOCALPATH)
begins width "/Media..."!
You must delete the "/" first.
You can do this width a view rows of code.
Add the Code befor Curr_message = .....
# correction of beginnig
if ZXMPPTHUMBPATH != None:
if len(ZXMPPTHUMBPATH) > 0:
if ZXMPPTHUMBPATH[0] == "/":
ZXMPPTHUMBPATH = ZXMPPTHUMBPATH[1:]
and in theSection of findfile
....
elif mode == IPHONE:
folder = 'Media/'
# correction of beginnig
if len(localurl) > 0:
if localurl[0] == "/":
localurl = localurl[1:]
if os.path.exists(localurl):
fname = localurl
else:
fname = folder
#return the file name
return fname
Original comment by dg1...@gmail.com
on 27 Jan 2014 at 9:49
Development is actually discontinued.
Original comment by francesco.picasso
on 25 Nov 2014 at 4:15
- Changed state: WontFix