public
Description: Read an RSS feed (even HTTPS with authentication) and rebroadcast it to a Twitter account.
Clone URL: git://github.com/trak3r/rss2twitter.git
trak3r (author)
Wed Apr 30 07:07:04 -0700 2008
commit  149c7f9389a7c6d10d589d81409532f7f1212a10
tree    ff8d54d85e0b077ff068d6c2da8915d18ec43a78
parent  48eef21d8beec7ff101790ea83422f6a612b688b
rss2twitter / shorturl_services_test.rb
100644 34 lines (31 sloc) 0.525 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/ruby
 
require 'rubygems'
require 'shorturl'
 
[ 'rubyurl',
  'tinyurl',
  'shorl',
  'snipurl',
  'metamark',
  'makeashorterlink',
  'skinnylink',
  'linktrim',
  'shorterlink',
  'minlink',
  'lns',
  'fyad',
  'd62',
  'shiturl',
  'littlink',
  'clipurl',
  'shortify',
  'orz',
  'moourl',
  'urltea'].each do |method|
  printf "%20s: ", method
  begin
    printf "%s", ShortURL.shorten('http://trak3r.blogspot.com', method.to_sym)
  rescue InvalidService, SocketError
    printf "broken!"
  end
  printf "\n"
end