|
@ -25,7 +25,7 @@ def run_delete(): |
|
|
parser.add_argument( |
|
|
parser.add_argument( |
|
|
"-P", |
|
|
"-P", |
|
|
"--password", |
|
|
"--password", |
|
|
required=True, |
|
|
required=False, |
|
|
dest="password", |
|
|
dest="password", |
|
|
type=str, |
|
|
type=str, |
|
|
help="Your Facebook password" |
|
|
help="Your Facebook password" |
|
@ -51,9 +51,14 @@ def run_delete(): |
|
|
|
|
|
|
|
|
args = parser.parse_args() |
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
|
|
|
if args.password is not None or not args.password: |
|
|
|
|
|
args_user_password = args.password |
|
|
|
|
|
else: |
|
|
|
|
|
args_user_password = input('Enter your password: ') |
|
|
|
|
|
|
|
|
delete_posts( |
|
|
delete_posts( |
|
|
user_email_address=args.email, |
|
|
user_email_address=args.email, |
|
|
user_password=args.password, |
|
|
user_password=args_user_password, |
|
|
user_profile_url=args.profile_url, |
|
|
user_profile_url=args.profile_url, |
|
|
is_headless=args.is_headless |
|
|
is_headless=args.is_headless |
|
|
) |
|
|
) |
|
|