This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Creates a CSV file to import passwords into BitWarden from an array | |
| Usage: | |
| - Download this file to a folder in your computer | |
| - Change the file as you wish to add more account entries | |
| - "cd" into the chosen download directory with the Terminal | |
| - Run "python3 generate_bitwarden_import_file.py" | |
| - A file called "generated_passwords.csv" will be created in the same directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Transform png image to jpg | |
| imgs = [] | |
| path = "/path/containing/png/files" | |
| valid_images = [".png"] | |
| for f in os.listdir(path): | |
| ext = os.path.splitext(f)[1] | |
| if ext.lower() not in valid_images: | |
| continue | |
| imgs.append({ | |
| 'name': f, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download images from csv | |
| with open('file.csv', 'rb') as myFile: | |
| reader = csv.reader(myFile, delimiter=',') | |
| for row in reader: | |
| if row[5] != 'Images': | |
| command = 'wget ' + row[5].split('?')[0] | |
| subprocess.Popen(command.split(), stdout=subprocess.PIPE) |
NewerOlder