Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 244 Bytes
#!/usrbin/ruby
require 'open-uri'
require 'json'
def twitter_profile(user)
begin
JSON::parse(open("http://twitter.com/users/show/#{user}.json").read)
rescue Exception
warn 'That twitter user is protected. Cannot read profile.'
end
end
Something went wrong with that request. Please try again.