Browse Source
Merge pull request #16 from Spirit-act/feature-password-prompt
Added password prompt
pull/19/head
Wesley Kerfoot
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
deletefb/deletefb.py
|
|
@ -25,7 +25,7 @@ def run_delete(): |
|
|
|
parser.add_argument( |
|
|
|
"-P", |
|
|
|
"--password", |
|
|
|
required=True, |
|
|
|
required=False, |
|
|
|
dest="password", |
|
|
|
type=str, |
|
|
|
help="Your Facebook password" |
|
|
@ -51,9 +51,11 @@ def run_delete(): |
|
|
|
|
|
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
args_user_password = args.password or input('Enter your password: ') |
|
|
|
|
|
|
|
delete_posts( |
|
|
|
user_email_address=args.email, |
|
|
|
user_password=args.password, |
|
|
|
user_password=args_user_password, |
|
|
|
user_profile_url=args.profile_url, |
|
|
|
is_headless=args.is_headless |
|
|
|
) |
|
|
|