Changeset b3b0c9c for de.wigbels.ruby


Ignore:
Timestamp:
Apr 24, 2009, 10:57:11 AM (15 years ago)
Author:
njw <njw@…>
Branches:
master
Children:
c01b5ba
Parents:
fc1853a
Message:

minor updates to rmallyourtweets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • de.wigbels.ruby/rmallyourtweets/rmallyourtweets.rb

    rfc1853a rb3b0c9c  
    1 #!/usr/bin/env ruby
     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/
    27
    38require 'rubygems'
     
    611
    712
    8 # foo
     13# auth yourself
    914httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
    1015twitter = Twitter::Base.new(httpauth)
    1116
    12 # bar
     17# go for complete deletion
    1318twitter.user_timeline("since:2004-01-14").each do |s|
    1419  twitter.status_destroy(s.id)
Note: See TracChangeset for help on using the changeset viewer.