Changeset 85544a9
- Timestamp:
- 05/06/2009 01:42:00 PM (16 years ago)
- Branches:
- master
- Children:
- 454b95c
- Parents:
- 9ea979a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/rmallyourtweets/rmallyourtweets.rb
r9ea979a r85544a9 14 14 15 15 # auth yourself 16 httpauth = Twitter::HTTPAuth.new('YOUR_USER ', 'YOUR_PASSWORD')16 httpauth = Twitter::HTTPAuth.new('YOUR_USERNAME', 'PASSWORD') 17 17 twitter = Twitter::Base.new(httpauth) 18 18 19 19 # go for complete deletion 20 twitter.user_timeline("since:2004-01-14").each do |s| 21 twitter.status_destroy(s.id) 22 puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})" 20 chunk = twitter.user_timeline 21 while chunk do 22 chunk.each do |s| 23 twitter.status_destroy(s.id) 24 puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})" 25 end 26 chunk = twitter.user_timeline 23 27 end 24 28 25 29 # finally 26 twitter.update("Hey! Ho! Let's Go #rmallyourtweets 27 http://foobla.wigbels.de/tag/delete-all-tweets/") 30 twitter.update("Hey! Ho! Let's Go #rmallyourtweets http://foobla.wigbels.de/tag/delete-all-tweets/")
Note:
See TracChangeset
for help on using the changeset viewer.