Skip to content

Commit

Permalink
feat: update chrome CSV format.
Browse files Browse the repository at this point in the history
fix #200
  • Loading branch information
roddhjav committed Aug 25, 2023
1 parent 71e2e65 commit 3631692
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions pass_import/managers/chrome.py
Expand Up @@ -11,15 +11,16 @@ class ChromeCSV(CSV):
"""Importer for Chrome in CSV format."""
name = 'chrome'
url = 'https://support.google.com/chrome'
hexport = ('See this guide: https://support.google.com/chrome/'
'answer/95606#see')
hexport = ('In chrome://password-manager/settings under 2Export passwords'
'Download File')
himport = 'pass import chrome file.csv'
only = True
keys = {
'title': 'name',
'password': 'password',
'login': 'username',
'url': 'url'
'url': 'url',
'comments': 'note',
}


Expand Down
9 changes: 5 additions & 4 deletions tests/assets/db/chrome.csv
@@ -1,15 +1,16 @@
name,url,username,password
name,url,username,password,note
"mastodon.social","https://mastodon.social/","ostqxi","D<INNeT?#?Bf4%`zA/4i!/'$T"
"twitter.com","https://twitter.com/","ostqxi","SoNEwvU,kJ%-cIKJ9[c#S;]jB"
"https://news.ycombinator.com","https://news.ycombinator.com","ostqxi","1)Btf2EI~Tfb7g2A!Sy',*Sj#"
"ovh.com","https://www.ovh.com/manager/web/","jsdkyvbwjn","^Vr/|o>_H8X%T]7>f}7|:U!Zs"
"ovh.com","https://www.ovh.com/manager/web/","bynbyjhqjz","3Z-VW!i,j(&!zRGPu(hFe]s'("
"aib","https://onlinebanking.aib.ie","dpbx@fner.ws","ws5T@;_UB[Q|P!8'`~z%XC'JHFUbf#IX _E0}:HF,[{ei0hBg14"
"dpbx@afoqwdr.tx","https://afoqwdr.tx","dpbx","9KVHnx:.S_S;cF`=CE@e\p{v6"
"dpbx@klivak.xb","","dpbx","2cUqe}e9}>IVZf)Ye>3C8ZN,r"
"dpbx@klivak.xb","","dpbx","2cUqe}e9}>IVZf)Ye>3C8ZN,r",This is a garbage address
"dpbx@mnyfymt.ws","https://mail.mnyfymt.ws","dpbx","rPCkmNkhIa>{izt3C3F823!Go"
"dpbx@fner.ws","","dpbx","mt}h'hSUCY;SU;;A!l[8y3O:8"
"dpbx@fner.ws","","dpbx","mt}h'hSUCY;SU;;A!l[8y3O:8","For financial purpose only!"
"space title","https://nhysdo.wg","vkeelpbu","]stDKo{%pk"
"empty entry","","",""
"empty password","https://nhysdo.wg","vkeelpbu",""
"note","","",""
"note","","","This is a multiline note entry. Cube shank petroleum guacamole dart mower
acutely slashing upper cringing lunchbox tapioca wrongful unbeaten sift."

0 comments on commit 3631692

Please sign in to comment.