diff --git a/README.md b/README.md index e95bea5..98542b5 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,28 @@ git+https://github.com/weskerfoot/DeleteFB.git` 4) Use the docker image (experimental) by running `make` after checking this repository out with git. There is also an image built and published automatically at `wjak56/deletefb:latest` ## How To Use It +``` +usage: deletefb [-h] [-M {wall,unlike_pages,conversations}] -E EMAIL [-P PASSWORD] -U PROFILE_URL [-F TWO_FACTOR_TOKEN] [-H] [--no-archive] [-Y YEAR] + [-B CHROMEBIN] + +optional arguments: + -h, --help show this help message and exit + -M {wall,unlike_pages,conversations}, --mode {wall,unlike_pages,conversations} + The mode you want to run in. Default is `wall' which deletes wall posts + -E EMAIL, --email EMAIL + Your email address associated with the account + -P PASSWORD, --password PASSWORD + Your Facebook password + -U PROFILE_URL, --profile-url PROFILE_URL + The link to your Facebook profile, e.g. https://www.facebook.com/your.name + -F TWO_FACTOR_TOKEN, --two-factor TWO_FACTOR_TOKEN + The code generated by your 2FA device for Facebook + -H, --headless Run browser in headless mode (no gui) + --no-archive Turn off archiving (on by default) + -Y YEAR, --year YEAR The year(s) you want posts deleted. + -B CHROMEBIN, --chromebin CHROMEBIN + Optional path to the Google Chrome (or Chromium) binary +``` * Make sure that you have a recent version of Python 3.x installed (preferably 3.6 or greater) diff --git a/deletefb/tools/wall.py b/deletefb/tools/wall.py index 568c516..fb8ff69 100644 --- a/deletefb/tools/wall.py +++ b/deletefb/tools/wall.py @@ -75,7 +75,8 @@ def delete_posts(driver, click_button(driver, confirmation_button) - except SELENIUM_EXCEPTIONS: + except SELENIUM_EXCEPTIONS as e: + print(e) continue else: break