Skip to content

Instantly share code, notes, and snippets.

@dotandimet
Created July 22, 2010 20:30
Show Gist options
  • Save dotandimet/486549 to your computer and use it in GitHub Desktop.
Save dotandimet/486549 to your computer and use it in GitHub Desktop.
use ojo;
my $s = oO( q{http://}
. join(q{:}, @ARGV)
. q{@api.twitter.com/1/statuses/friends_timeline.json}
)->json;
foreach (@$s) {
print Oo($_->{user}{screen_name}, q{: }, $_->{text});
my @links =
map { $_ =~ s/\.$//; $_ }
map { ( $_ =~ m|(http://[^\s]+)| ) } $_->{text};
print "\n\t\tLinks: @links\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment