weskerfoot / DeleteFB
- среда, 22 мая 2019 г. в 00:18:32
Python
Selenium script to delete all of your Facebook wall posts
I needed a simple and reliable way to delete Facebook posts. There are third-party apps that claim to do this, but they all require handing over your credentials, or are unreliable in other ways. Since this uses Selenium, it is more reliable, as it uses your real web browser, and it is less likely Facebook will block or throttle you.
As for why you would want to do this in the first place. That is up to you. Personally I wanted a way to delete most of my content on Facebook without deleting my account.
I can make no guarantees that Facebook doesn't store the data somewhere forever in cold storage. However this tool is intended more as a way to clean up your online presence and not have to worry about what you wrote from years ago. Personally, I did this so I would feel less attached to my Facebook profile (and hence feel the need to use it less).
You have several options to run it.
pip install --user delete-facebook-postspip install --user . or do pip install --user git+https://github.com/weskerfoot/DeleteFB.gitpip install -r requirements.txt, then you can just run python deletefb/deletefb.py as you
would if you had installed it from PyPI.chromium package, and on Ubuntu it is chromium-chromedriver.deletefb -E "youremail@example.org" -P "yourfacebookpassword" -U "https://www.facebook.com/your.profile.url"--headless
option, which may be preferable if you plan on running it in the background.See this link for instructions on installing with Brew.
Use your native package manager
See this link, but I make no guarantees that Selenium will actually work as I have not tested it.
If it stops working or otherwise crashes, delete the latest post manually and start it again after waiting a minute. I make no guarantees that it will work perfectly for every profile. Please file an issue if you run into any problems.