def get_profile_of_id(id1, id2):
    photo_data = {}
    photo_count = 1
    folder = create_dir('fb-image')
    for i in xrange(int(id1), int(id2) + 1):
        photo_data[photo_count] = get_profile(gen_url(str(i)), folder + "/" + str(i) + ".jpg")
        photo_count += 1
    json.dump(photo_data, open(folder + "/data.txt", 'wb'))
    print "Images fetched: " + str(photo_count - 1)
    return 0
dataset/ETHPy150Open ankitaggarwal011/FaceGrab/fb_image.py/get_profile_of_id/original