LoginSignup
2
2

More than 5 years have passed since last update.

mikutterコンソールから特定のユーザのフォロワーを一括ブロック

Posted at

最近スパムアカウント同士でフォローしあってフォロワー数を稼ぎ,通常のアカウントであるかのように装ってフォローを仕掛けてくるスパムアカウントがいるのでやってみた.

mikutterコンソールを開いて以下を入力,Ctrl+Enterで実行.

Service.primary.followers(screen_name: "ユーザ名").next { |users|
    users.each { |user|
        (Service.primary.twitter/:blocks/:create).json(screen_name: user.idname)
        # puts "blocked: " + user.idname
    }
}
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2