From 6ba365e124a5f9eb8f07ebf7fd5081c5adaba83f Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Tue, 21 Jan 2020 13:58:15 -0500 Subject: [PATCH 1/3] add help output to readme --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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) From 5da3367df63938efa532c0eb6808641abb180f38 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot <378351+weskerfoot@users.noreply.github.com> Date: Tue, 4 Feb 2020 00:24:42 -0500 Subject: [PATCH 2/3] print exceptions (#108) --- deletefb/tools/wall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 64c46e378b0ba4d66a2158c2c4f3898b2c89b023 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot <378351+weskerfoot@users.noreply.github.com> Date: Sun, 9 Feb 2020 02:52:36 -0500 Subject: [PATCH 3/3] Update chrome_driver.py (#111) --- deletefb/tools/chrome_driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deletefb/tools/chrome_driver.py b/deletefb/tools/chrome_driver.py index c59361e..e048716 100644 --- a/deletefb/tools/chrome_driver.py +++ b/deletefb/tools/chrome_driver.py @@ -10,9 +10,9 @@ import re import zipfile chrome_drivers = { - "Windows" : "https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_win32.zip", - "Darwin" : "https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_mac64.zip", - "Linux" : "https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip" + "Windows" : "https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_win32.zip", + "Darwin" : "https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_mac64.zip", + "Linux" : "https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip" } def extract_zip(filename):