Skip to content

Instantly share code, notes, and snippets.

@sharl
Created October 16, 2012 03:23
Show Gist options
  • Save sharl/3897089 to your computer and use it in GitHub Desktop.
Save sharl/3897089 to your computer and use it in GitHub Desktop.
report spam from user id list sample
my %blocked_users;
map { $blocked_users{$_}++ } @{$tw->blocking_ids};
my @users = map { chomp; $_ } <STDIN>;
for my $user (@users) {
if (! $blocked_users{$user}) {
eval { $tw->report_spam({user_id => $user}) };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment