Last change
on this file since fc1853a was fc1853a, checked in by njw <njw@…>, 16 years ago |
added remove all your tweets
|
-
Property mode
set to
100644
|
File size:
353 bytes
|
Line | |
---|
1 | #!/usr/bin/env ruby
|
---|
2 |
|
---|
3 | require 'rubygems'
|
---|
4 | require 'activesupport'
|
---|
5 | require 'twitter'
|
---|
6 |
|
---|
7 |
|
---|
8 | # foo
|
---|
9 | httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
|
---|
10 | twitter = Twitter::Base.new(httpauth)
|
---|
11 |
|
---|
12 | # bar
|
---|
13 | twitter.user_timeline("since:2004-01-14").each do |s|
|
---|
14 | twitter.status_destroy(s.id)
|
---|
15 | puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})"
|
---|
16 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.