Last change
on this file since b3b0c9c was b3b0c9c, checked in by njw <njw@…>, 15 years ago |
minor updates to rmallyourtweets
|
-
Property mode
set to
100644
|
File size:
573 bytes
|
Line | |
---|
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/
|
---|
7 |
|
---|
8 | require 'rubygems'
|
---|
9 | require 'activesupport'
|
---|
10 | require 'twitter'
|
---|
11 |
|
---|
12 |
|
---|
13 | # auth yourself
|
---|
14 | httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
|
---|
15 | twitter = Twitter::Base.new(httpauth)
|
---|
16 |
|
---|
17 | # go for complete deletion
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.