File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ with a standalone console script:
53
53
54
54
``` console
55
55
$ python -m pycookiecheat --help
56
- usage: pycookiecheat [-h] [-b BROWSER] [-o OUTPUT_FILE] [-v] [-c COOKIE_FILE] [-V] url
56
+ usage: pycookiecheat [-h] [-b BROWSER] [-o OUTPUT_FILE] [-v] [-c COOKIE_FILE]
57
+ [-V]
58
+ url
57
59
58
60
Copy cookies from Chrome or Firefox and output as json
59
61
@@ -65,10 +67,13 @@ options:
65
67
-b BROWSER, --browser BROWSER
66
68
-o OUTPUT_FILE, --output-file OUTPUT_FILE
67
69
Output to this file in netscape cookie file format
68
- -v, --verbose Increase logging verbosity (may repeat), default is `logging.ERROR`
70
+ -v, --verbose Increase logging verbosity (may repeat), default is
71
+ `logging.ERROR`
69
72
-c COOKIE_FILE, --cookie-file COOKIE_FILE
70
73
Cookie file
71
- -V, --version show program's version number and exit```
74
+ -V, --version show program's version number and exit
75
+
76
+ ```
72
77
73
78
### As a Python Library
74
79
Original file line number Diff line number Diff line change @@ -33,17 +33,15 @@ def as_cookie_file_line(self) -> str:
33
33
34
34
See details at http://www.cookiecentral.com/faq/#3.5
35
35
"""
36
- return "\t " .join (
37
- [
38
- self .host_key ,
39
- "TRUE" ,
40
- self .path ,
41
- "TRUE" if self .is_secure else "FALSE" ,
42
- str (self .expires_utc ),
43
- self .name ,
44
- self .value ,
45
- ]
46
- )
36
+ return "\t " .join ([
37
+ self .host_key ,
38
+ "TRUE" ,
39
+ self .path ,
40
+ "TRUE" if self .is_secure else "FALSE" ,
41
+ str (self .expires_utc ),
42
+ self .name ,
43
+ self .value ,
44
+ ])
47
45
48
46
49
47
def generate_host_keys (hostname : str ) -> Iterator [str ]:
You can’t perform that action at this time.
0 commit comments