This helps you search for available twitter usernames.
I really want a twitter username that matches my nickname instead of my realname. Most of the good formulations of my nickname are taken so I wanted to find something with an _ or 1 placed in a non-annoying spot. There are a lot of permutations so I decided to generate them and then search automatically.
Just populate the names vector with the 'base' names you're interested in. If you want to search those specifically then (search names)
I did this in LightTable with an InstaRepl window, so I'd recommend that. If you're going to just run the .clj file then just pass the (search) calls to (println).
If it gets a non-200 response from https://twitter.com/USERNAME then it thinks the name is available. This isn't always true. Suspended account pages get non-200 responses.
I'm using seqs of promises synchronously.
The insert function is atrocious. I'm sure there's a better way to do this than I am. Comments or PRs welcome.