Skip to content

Binh

My feedback

1 result found

  1. 175 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Binh commented  · 

    Please use the following python script:

    import csv

    input_file = 'input.csv'
    output_file = 'output.csv'

    timestamp = "1776696617"
    category = "YOUR CATEGORY"

    def transform_csv():
    try:
    with open(input_file, mode='r', encoding='utf-8') as infile:
    reader = csv.reader(infile)
    transformed_rows = []

    for row in reader:
    if len(row) > 0 and row[0].strip().lower() == 'login':

    email = row[1] if len(row) > 1 else ""
    password = row[2] if len(row) > 2 else ""
    service_name = row[3] if len(row) > 3 else ""
    url = row[4] if len(row) > 4 else ""

    new_row = [
    "login", # 0
    service_name, # 1
    url, # 2
    email, # 3
    "", # 4
    password, # 5
    "", # 6
    "", # 7
    timestamp, # 8
    timestamp, # 9
    category # 10
    ]
    transformed_rows.append(new_row)

    with open(output_file, mode='w', encoding='utf-8', newline='') as outfile:
    writer = csv.writer(outfile)
    writer.writerows(transformed_rows)

    print(f"Finish, output file at: {output_file}")

    except FileNotFoundError:
    print("Cannot find input.csv.")
    except Exception as e:
    print(f"Error: {e}")

    if __name__ == "__main__":
    transform_csv()

    Replace YOUR CATEGORY with your category name. Save it as transfer.py. Export Norton Password Manager csv as input.csv. Then open Terminal, type python3 transfer.py and you will see the output.csv file.

    In the Proton Pass app, click Import, choose Proton Pass (zip, qgp, csv) and then choose the output.csv file.