How many users on Twitter have all “u”s as a username?

require 'net/http'
Net::HTTP.start( 'twitter.com' ) { |http|
    us=0
    us+=1 until Net::HTTPNotFound==http.request_head('/'+'u'*us).class
    puts us
}
# 15

Leave a Reply

You must be logged in to post a comment.