Git Product home page Git Product logo

facebook-cleaner's Introduction

Facebook cleaner

This is a command line script written in ruby that lets you delete all the years from your Facebook. So you can delete all the old content, but not the last one.

For this it uses the facebook mobile page, because it just doesn't have Javascript and presents the least amount of confirmation dialogs, which are stepped through using selenium webdriver.

Requirements

You need a version of ruby for it and bundler. The former you can probably easily install via your package manager and the latter one you can install easily via command line afterwards (just type gem install bundler).

Further you need a working selenium-webdriver environment (download and installation guide on seleniumhq.com). And because the script checks some button texts, to figure out, if we click on the right one, it is best to switch the language to "English (UK)". It certainly won't work with a non-english language, and the US english can also have some slight differences in wording which can cause runtime errors, or the script not clicking on buttons.

Usage

ruby run.rb

You'll be asked to enter your name, your password (securely of course), your username (that thing, that is written after www.facebook.com/ if you click on your profile) and the year you want to delete.

Guarantees that it will work?

Nope, but after some iterations it ran through my years of facebook posts and did a pretty good job deleting almost all of it. So it definitely saves you a lot of time.

I hope it runs for you as well, if you find some bugs or have questions. Please feel free to create an Issue or PR.

License

MIT, see LICENSE file

facebook-cleaner's People

Contributors

calamari avatar jansowinski avatar schmijos avatar slothbear avatar zoras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

facebook-cleaner's Issues

The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

We might need to change your Facebook language to English (UK), is that ok? [Yn]: Y
#0 0x7fb2f149b419 : unknown error: Chrome failed to start: crashed (Selenium::WebDriver::Error::UnknownError)
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
from #1 0x7fb2f1458cd3
from #2 0x7fb2f138fa7c
from #3 0x7fb2f12fc927
from #4 0x7fb2f1324a9d
from #5 0x7fb2f13220e3
from #6 0x7fb2f1301def
from #7 0x7fb2f1302ef5
from #8 0x7fb2f12d451d
from #9 0x7fb2f12cd72f
from #10 0x7fb2f12cd4d5
from #11 0x7fb2f145fff6
from #12 0x7fb2f147d449
from #13 0x7fb2f146d157
from #14 0x7fb2f1487022
from #15 0x7fb2f14a58a5
from #16 0x7fb2f09d76db
from #17 0x7fb2ee6a188f
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:69:in assert_ok' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:32:in initialize'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/common.rb:84:in new' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/common.rb:84:in create_response'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/default.rb:104:in request' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/common.rb:62:in call'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/bridge.rb:166:in execute' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/bridge.rb:99:in create_session'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/bridge.rb:53:in handshake' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/chrome/driver.rb:49:in initialize'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/driver.rb:44:in new' from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/driver.rb:44:in for'
from /home/dante/.rvm/gems/ruby-2.1.2/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver.rb:86:in for' from run.rb:139:in driver'
from run.rb:36:in ensure in run' from run.rb:36:in run'

Updating requirements

Hi, great project!

I think it'll be worth adding two requirements to README:

  • chromedriver - after just cloning repo, typing bundle and ruby run.rb I got errors about not having chromedriver in PATH, I think I'ts worth adding info about that to tutorial - it'll save some time to newcomers.
  • If you have selected language other than English (UK) in facebook settings, this script won't work (see #5 and PR connected with that), so I think it's woth adding line about it to requirements

[edited] - it's more informative now :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.