File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 3
3
##
4
4
5
5
- Add ` --version ` flag (thanks @samiam )
6
+ - Add ` -c ` flag to specify custom path to cookie file (thanks @samiam )
6
7
- Fix new path to Firefox profile on MacOS (thanks @MattMuffin )
7
8
- Support Chrome's new v24 cookies (thanks @chrisgavin )
8
9
- Now requires python >= 3.9
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ with a standalone console script:
53
53
54
54
``` console
55
55
$ pycookiecheat --help
56
- usage: pycookiecheat [-h] -u URL [-b BROWSER] [-o OUTPUT_FILE]
56
+ usage: pycookiecheat [-h] -u URL [-b BROWSER] [-o OUTPUT_FILE] [--verbose]
57
+ [-c COOKIE_FILE]
57
58
58
59
Copy cookies from Chrome or Firefox and output as json
59
60
@@ -63,6 +64,9 @@ options:
63
64
-b BROWSER, --browser BROWSER
64
65
-o OUTPUT_FILE, --output-file OUTPUT_FILE
65
66
Output to this file in netscape cookie file format
67
+ --verbose, -v Increase logging verbosity (may repeat), default is `logging.ERROR`
68
+ -c COOKIE_FILE, --cookie-file COOKIE_FILE
69
+ Cookie file
66
70
```
67
71
68
72
### As a Python Library
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ def main() -> None:
35
35
"`logging.ERROR`"
36
36
),
37
37
)
38
+ parser .add_argument (
39
+ "-c" ,
40
+ "--cookie-file" ,
41
+ help = "Cookie file" ,
42
+ )
38
43
parser .add_argument (
39
44
"-V" ,
40
45
"--version" ,
@@ -55,12 +60,14 @@ def main() -> None:
55
60
url = args .url ,
56
61
browser = browser ,
57
62
curl_cookie_file = args .output_file ,
63
+ cookie_file = args .cookie_file ,
58
64
)
59
65
else :
60
66
cookies = chrome_cookies (
61
67
url = args .url ,
62
68
browser = browser ,
63
69
curl_cookie_file = args .output_file ,
70
+ cookie_file = args .cookie_file ,
64
71
)
65
72
66
73
if not args .output_file :
You can’t perform that action at this time.
0 commit comments