def get_profile_of_file(filename):
    names = []
    with open(filename) as f:
        content = f.readlines()
    for i in content:
        names.append(i.rstrip('\n').lstrip(' '))
    photo_data = {}
    photo_count = 1
    folder = create_dir('fb-image')
    for i in names:
        photo_data[photo_count] = get_profile(gen_url(i), folder + "/" + str(i) + ".jpg")
        photo_count += 1
    json.dump(photo_data, open(folder + "/data.txt", 'wb'))
    print "Images fetched: " + str(1 - photo_count)
    return 0
## Helper functions end
dataset/ETHPy150Open ankitaggarwal011/FaceGrab/fb_image.py/get_profile_of_file/swapped operands of `-`