Last change
on this file since c01b5ba was
c01b5ba,
checked in by njw <njw@…>, 15 years ago
|
building imperia
|
-
Property mode set to
100644
|
File size:
686 bytes
|
Rev | Line | |
---|
[b3b0c9c] | 1 | #! /usr/bin/env ruby |
---|
| 2 | |
---|
| 3 | # remove all your tweets; |
---|
| 4 | # basically, if you want to keep your account |
---|
| 5 | # |
---|
| 6 | # adapted from http://blog.johnwyles.com/articles/2009/01/06/destroying-deleting-and-erasing-old-twitter-tweets/ |
---|
[fc1853a] | 7 | |
---|
| 8 | require 'rubygems' |
---|
| 9 | require 'activesupport' |
---|
| 10 | require 'twitter' |
---|
| 11 | |
---|
| 12 | |
---|
[b3b0c9c] | 13 | # auth yourself |
---|
[fc1853a] | 14 | httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD') |
---|
| 15 | twitter = Twitter::Base.new(httpauth) |
---|
| 16 | |
---|
[b3b0c9c] | 17 | # go for complete deletion |
---|
[fc1853a] | 18 | twitter.user_timeline("since:2004-01-14").each do |s| |
---|
| 19 | twitter.status_destroy(s.id) |
---|
| 20 | puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})" |
---|
| 21 | end |
---|
[c01b5ba] | 22 | |
---|
| 23 | # finally |
---|
| 24 | twitter.update("Hey! Ho! Let's Go #rmallyourtweets |
---|
| 25 | http://foobla.wigbels.de/tag/delete-all-tweets/") |
---|
Note: See
TracBrowser
for help on using the repository browser.