class Botinsta
This is our main class from which we will be instantiating our bot.
Constants
- DEFAULT_PARAMETERS
- VERSION
Public Class Methods
new(**params)
click to toggle source
# File lib/botinsta.rb, line 32 def initialize(**params) params = DEFAULT_PARAMETERS.merge(params) @username = params[:username] @password = params[:password] @tags = params[:tags] @tag_blacklist = params[:tag_blacklist] @user_blacklist = params[:user_blacklist] @likes_per_tag = params[:likes_per_tag] @follows_per_tag = params[:follows_per_tag] @unfollows_per_run = params[:unfollows_per_run] @unfollow_threshold = params[:unfollow_threshold] @total_likes = 0 @total_follows = 0 @total_unfollows = 0 @agent = Mechanize.new handle_database_creation return if @table_follows.empty? @first_db_entry = @table_follows.first @last_follow_time = @table_follows.first[:follow_time] end
Public Instance Methods
start()
click to toggle source
# File lib/botinsta.rb, line 59 def start login tag_based_mode logout end