Export logins from 1password to csv
Go to file
2019-10-24 12:35:13 +03:00
.gitignore Improve readme 2019-10-24 12:34:05 +03:00
1export.py Format code 2019-10-24 12:35:13 +03:00
LICENSE Initial commit 2019-10-22 14:41:43 +03:00
README.md Improve readme 2019-10-24 12:34:05 +03:00

Export 1password logins to csv

1password hasn't tool to export data at Linux. But is has command line client, which you can use to fetch all data.

Requirements:

  • 1password command line client (op)
  • Python 3
  • tar, gpg (for encryption) binaries

First login with op client. It exports session key to environment variables. More details signin.

$ eval $(op signin my)

Next run script

$ python3 1export.py <file-name>

If you want encrypt exported data, pass --password argument

$ python3 1export.py --password <password> <file-name> 	

All together in one line:

$ eval $(op signin my); python3 1export.py --password <password> "/home/av/Dropbox/1password-$(date '+%Y-%m-%d')"