Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

(in use) a tool to clear out old Twitter favorites

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Main.hs
Octocat-spinner-32 README
Octocat-spinner-32 prof.bash
Octocat-spinner-32 unfav.cabal
README
unfav
Kevin Cantu <me@kevincantu.org>
September 2011


BUILD:
$ mkdir twitter-dev
$ cd twitter-dev
$ git clone https://killerswan@github.com/killerswan/askitter.git
$ git clone https://killerswan@github.com/killerswan/twitter-unfav.git
$ cabal-dev install ./askitter ./twitter-unfav
$ ./cabal-dev/bin/unfav -h
unfav
  -g         --generate       toggle generate mode, to save a Twitter API token
                              (requires a FILE, KEY, and SECRET, too)
  -f FILE    --file=FILE      name of a file where the token is (or will be) saved
  -k KEY     --key=KEY        a consumer key for this app
  -s SECRET  --secret=SECRET  a consumer secret for this app
  -h         --help           display help
  -v         --version        display version


CREATE AN APP:
Go to Twitter's dev site and create an application
which will request read/write permissions.
Note its consumer key and consumer secret...


GENERATE TOKEN:
$ ./cabal-dev/bin/unfav --generate --file "my.token" --key 99999999 --secret 99999999999
open https://api.twitter.com/oauth/authorize?oauth_token=99999999999
99999999
verifier: writing token file...


DELETE OLDER FAVORITES:
$ ./cabal-dev/bin/unfav --file my.token
number of favorites: 7566...
 <- getting page 1...  
 <- getting page 2...  
 <- getting page 3...  
 <- getting page 4...  xx
 <- getting page 5...  xxxxxxxxxxxxxxxxxxxx
 <- getting page 6...  xxxxxxxxxxxxxxxxxxxx
 <- getting page 7...  xxxxxxxxxxxxxxxxxxxx
...


Something went wrong with that request. Please try again.