Skip to content

Instantly share code, notes, and snippets.

@pocky
Created May 14, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocky/dc19039defe41e8b793df0f27bf740b8 to your computer and use it in GitHub Desktop.
Save pocky/dc19039defe41e8b793df0f27bf740b8 to your computer and use it in GitHub Desktop.
My Tweet deletion script
#!/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