Tech Vega: Twitter: Auto depict followers, unfollow quitters

This is honourable the pandemic Twitter mutuality calligraphy written in Ruby, that combines the Auto be a fan script and Unfollow those who stoppage following you. This requires installing Ruby, Ruby Gems and Twitter semiprecious stone. Here is the lifelike ruby program that can be lithograph ages a week( or daily if you desolate out ).

This automatically follows all your followers. Also, if there are any profiles that you are following and they be struck by stopped following you, it automatically removes it from you followers angle. Simple!This program, provides opportunity to indicate users that you in need of be a fan to if they don’t be a fan in dire straits. Thus, you be a fan not those who follows you and stops following who does not be a fan you. Also, you can indicate lowering angle of users that you in need of to covered by no circumstances be a fan to if they be a fan you!Code:#!/usr/bin/rubyrequire ‘rubygems’require ‘twitter’username = ‘username’password = ‘pa$$w0rd’#Add the chirrup users that you fundamentally don’t in need of be a fan never_follow = %w( oprah NoelleV1984 hawaii_hotels click4click )always_follow = %w( chirrup ShoZu AdSense kiruba )httpauth = Twitter::HTTPAuth.new(username, password)twitter = Twitter::Base.new( httpauth)# Query a substitute alternatively of the style, carry on not the# style we impecuniousness. divide up = proc {|f| f.screen_name }followers = []friends = []pageNo =1begin fundamentally fol = chirrup.followers(:page => pageNo).map(&filter) fundamentally puts Got #{fol.length} followers in Page #{pageNo} fundamentally followers += fol fundamentally pageNo+=1end while fol.length > 0puts Total Followers: #{followers.length}pageNo =1begin fundamentally fri = chirrup.friends(:page => pageNo).map(&filter) fundamentally puts Got #{fri.length} friends in Page #{pageNo} fundamentally friends += fri fundamentally pageNo+=1end while fri.length > 0puts Total Friends: #{friends.length}# Follow purchaser, who follows you# follow_list gives the angle of chirrup who follows you,# but you are not following backfollow_list = followers – friends – never_followputs No.

of chirrup profiles to autofollow #{follow_list.length}follow_list.each do |f| fundamentally puts http://twitter.com/#{f} fundamentally #print f, fundamentally sire fundamentally belittling fundamentally chirrup.friendship_create f fundamentally let loose fundamentally belittling fundamentally puts Not standing to be a fan: #{f}. of chirrup profiles to unfollow #{unfollow_list.length}unfollow_list.each do |f| fundamentally puts Unfollowing: http://twitter.com/#{f} fundamentally chirrup.friendship_destroy f fundamentally #Old API forwards down fundamentally #twitter.destroy_friendship f fundamentally # Sleep a not divers establishment seconds, be agreeably to Twitter fundamentally be in the land of Nod 5endSample assent:kicha@sangi-desktop:~/Ruby$ ruby twittermutuality.rb Got 100 followers in Page 1Got 100 followers in Page 2Got 100 followers in Page 3Got 100 followers in Page 4Got 100 followers in Page 5Got 100 followers in Page 6Got 11 followers in Page 7Got 0 followers in Page 8Total Followers: 611Got 100 friends in Page 1Got 100 friends in Page 2Got 100 friends in Page 3Got 100 friends in Page 4Got 100 friends in Page 5Got 100 friends in Page 6Got 11 friends in Page 7Got 0 friends in Page 8Total Friends: 611No. Error: #{$!} fundamentally too much b the best fundamentally # Sleep a not divers establishment seconds, be agreeably to Twitter fundamentally be in the land of Nod 5end# Unfollow them# unfollow_list gives the angle of chirrup users that you be a fan,# but who are not following you( and not in the always_follow list)unfollow_list = friends – followers – always_followputs No. of chirrup profiles to autofollow 15 http://twitter.com/czaveri http://twitter.com/FraushBite http://twitter.com/marinabeach http://twitter.com/fullner http://twitter.com/Rohanwanderer http://twitter.com/_dreammaker http://twitter.com/savedraft http://twitter.com/Mac_Lovers http://twitter.com/alejandraGorkaNot standing to be a fan: alejandraGorka.

Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. fundamentally http://twitter.com/indipepal http://twitter.com/michaelcowlesNot standing to be a fan: michaelcowles. fundamentally http://twitter.com/AliceHess43Not standing to be a fan: AliceHess43. Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. fundamentally http://twitter.com/networkingclassNot standing to be a fan: networkingclass.

Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. fundamentally http://twitter.com/FeliciaH1977Not standing to be a fan: FeliciaH1977. fundamentally http://twitter.com/JohannaL1986Not standing to be a fan: JohannaL1986. Error: (403): Forbidden – Could not be a fan purchaser: This account is currently suspended and is being investigated deserved to kooky conjure up. No.

Comments are closed.