Created
May 14, 2018 21:34
-
-
Save pocky/dc19039defe41e8b793df0f27bf740b8 to your computer and use it in GitHub Desktop.
My Tweet deletion script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "tweet_deletion" | |
require 'yaml' | |
config = YAML.load_file('config.yml') | |
TweetDeletion.with( config ) do | |
for_archive("./archive/") do | |
keep_if earlier_than(3.years.ago), tag:" ๐ " # When I was young, I was. | |
keep_if contains("crรฉation du compte twitter"), tag: " ๐ฆ " # My first tweet | |
keep_if is_rt, tag: " ๐ " | |
keep_if rt_by_more_than(10), tag: " โจ " | |
keep_if has_media, tag: " ๐บ " | |
keep_if contains("php"), tag: " ๐ " | |
keep_if contains("Verifying myself"), tag: " ๐ " # Keybase | |
else_delete tag: " ๐ " | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment