forked from instabotai/instabotai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment_hashtagsai.py
39 lines (32 loc) · 1.36 KB
/
comment_hashtagsai.py
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
from instabotai import ai
import argparse
try:
input = raw_input
except NameError:
pass
COOKIES = {}
bot = ai.Bot(do_logout=True)
# Parse info from terminal
parser = argparse.ArgumentParser(add_help=True)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
parser.add_argument('-hashtags', type=str, help="user")
parser.add_argument('-comment', type=str, help="comment")
parser.add_argument('-sleep', type=int, help="sleep")
args = parser.parse_args()
username = str(args.u)
# Login
ai.Bots.user_login(args.u, args.p)
#bot.login(username=args.u, password=args.p, proxy=args.proxy, use_cookie=True)
#ai.Bots.follow_users_hashtag_ai("fitness, programming", 45)
#ai.Bots.watch_stories(args.user, args.sleep)
#ai.Bots.follow_users_followers_ai(args.user, args.sleep)
#ai.Bots.follow_users_following_ai(args.user, args.sleep)
#ai.Bots.follow_users_ai("japanheaven", 40)
ai.Bots.user_hashtag_comment(args.hashtags, args.comment, args.sleep)
#ai.Bots.user_hashtag_comment("fitness, models, friends", "wow please follow me back, wow nice profile, awesome profile", 40)
#ai.Bots.like_hashtags("model", 45)
#ai.Bots.like_following(user, args.sleep)
#ai.Bots.like_followers("japanheaven", 40)
#ai.Bots.repost_users_images("japanheaven, timferris, ariana, sjaaybee", "#models", 40)