Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Trolling twitter for 2-letter handles
require 'httparty'
include HTTParty
('aa'..'zz').select { |r|
sleep 0.20
puts "trying #{r}"
self.class.head("{r}").code == 404
# => ['me', 'oh']
# Sadly, 'me' and 'oh' both return 404s, but aren't available. Too bad. I would have enjoyed either one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.