forked from eVanilla/instabot.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.rb
39 lines (35 loc) · 1.61 KB
/
example.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'instabot'
Config.setup do |set|
set.username = 'REPLACE_YOUR_USERNAME'
set.password = 'REPLACE_YOUR_PASSWORD'
set.tags = %w[test hello birthday]
# set.use_proxy = true # => it's important to enable the proxy usage
# set.proxy = ["localhost",8888] # without username and password
# set.proxy = ["localhost",8000,"USERNAME","PASSWORD"] # with username and password
set.wait_per_action = 1 * 60
set.max_like_per_day = 6
set.max_follow_per_day = 6
set.max_unfollow_per_day = 6
set.max_comment_per_day = 6
set.infinite_tags = true
set.print_banner = true
set.pre_load = false
# set.unwanted_list = ["_id","free_","free"] # => under construction...
# set.white_list_users = ["john","alex","nick"] # => under construction...
set.comments = [
%w[this the your],
%w[photo picture pic shot snapshot],
['is', 'looks', 'feels', 'is really'],
['great', 'super', 'good', 'very good', 'good', 'wow', 'WOW', 'cool', 'GREAT', 'magnificent', 'magical', 'very cool', 'stylish', 'beautiful', 'so beautiful', 'so stylish', 'so professional', 'lovely', 'so lovely', 'very lovely', 'glorious', 'so glorious', 'very glorious', 'adorable', 'excellent', 'amazing'],
['.', '..', '...', '!', '!!', '!!!']
]
end
bot = Instabot.new
bot.mode(:infinite) # => :cleanup, :infinite, ...
# manual methods
# bot.login("username","password")
# bot.logout()
# bot.follow("user_id")
# bot.unfollow("user_id")
# bot.like("media_id")
# bot.comment("media_id", "test comment")