1. Ehtesham Siddiqui's Avatar
    1) Install QPython on Android phone
    2) Open Editor
    3) Copy Paste Code
    4) Edit folder_list.append statements with your respective directories. Add as many as you want.
    (Directory paths can be obtained using any file explorer app or AndroidZip)
    5) Click Save Button. Click Run button.

    import os, hashlib, Image
    from operator import itemgetter
    from itertools import groupby

    image_list = []
    folder_list = []
    folder_list.append(r'/storage/emulated/0/whatsapp/media/whatsapp images/')
    folder_list.append(r'/storage/emulated/0/whatsapp/media/whatsapp images/Sent')

    for folder in folder_list:
    file_list = os.listdir(folder)
    for img_file in file_list:
    file_path = os.path.join(folder, img_file)
    if os.path.isfile(file_path):
    sha1 = hashlib.sha1()
    image_list.append([file_path, sha1.hexdigest()])
    except IOError:
    hjjj = "do nothing"

    groups = groupby(image_list, itemgetter(1))
    for (img_hash, img_list_same_hash) in groups:
    z = [img for img in img_list_same_hash]
    i = 1 #Not deleting first element(index 0)
    while i < len(z):
    print 'Deleted ' + z[i][0]
    i += 1
    06-22-2014 02:13 PM
  2. alex4785's Avatar
    o really great to see this post guy.. Thanks buddy for the code.
    10-09-2014 02:23 PM

Similar Threads

  1. Helium app data from Nexus 7 (2012) to Nexus 5
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 06-23-2014, 11:07 AM
  2. How to Root my 2012 Nexus 7 wi-fi only
    By AC Question in forum Ask a Question
    Replies: 3
    Last Post: 06-22-2014, 10:14 PM
  3. Has anyone tried changing their APN to IPv6.....
    By vWvSTATICvWv in forum General Carrier Discussion
    Replies: 3
    Last Post: 06-22-2014, 09:12 PM
  4. Need to Create Google Play Playlists or Categories
    By AC Question in forum Ask a Question
    Replies: 7
    Last Post: 06-22-2014, 08:40 PM
  5. Cannot connect to gear
    By jay_dubb2k5 in forum Samsung Galaxy Gear
    Replies: 0
    Last Post: 06-22-2014, 02:08 PM