Example #1
0
def unfollowall():
    count = 0
    for i in followings:
        count += 1
        time.sleep(float(random.uniform(min_delay * 10, max_delay * 10) / 10))
        user_id = aux_funcs.get_id(i)
        print(str(count) + ") Unfollowing " + i)
        api.unfollow(user_id)
def unfollowall():
    count = 0
    for i in followings:
        count += 1
        time.sleep(unfollow_delay)
        user_id = aux_funcs.get_id(i)
        print(str(count) + ") Unfollowing " + i)
        api.unfollow(user_id)
def super_followback():
    count = 0
    for i in followers:
        if i not in followings:
            count += 1
            time.sleep(follow_delay)
            user_id = aux_funcs.get_id(i)
            print(str(count) + ") Following back " + i)
            api.follow(user_id)
def follow_location(target):
    users_madrid = []
    api.getLocationFeed(target)
    media_id = api.LastJson
    for i in media_id.get("items"):
        username = i.get("user").get("username")
        user_id = aux_funcs.get_id(username)
        print("Following " + username)
        api.follow(user_id)
def super_followback():
	count = 0
	for i in followers:
		if i not in followings:
			count+=1
			time.sleep(float( random.uniform(min_delay*10,max_delay*10) / 10 ))
			print(str(count)+") Following back "+i)
			user_id = aux_funcs.get_id(i)
			api.follow(user_id)
def super_unfollow():
    whitelist = open("whitelist.txt").read().splitlines()
    count = 0
    for i in followings:
        if (i not in followers) and (i not in whitelist):
            count += 1
            time.sleep(unfollow_delay)
            user_id = aux_funcs.get_id(i)
            print(str(count) + ") Unfollowing " + i)
            api.unfollow(user_id)
Example #7
0
def unfollowall():
    print('\n  %sStart unfollowing all user. Please wait ...' % C0)
    count = 0
    for i in followings:
        count += 1
        time.sleep(float(random.uniform(min_delay * 10, max_delay * 10) / 10))
        user_id = aux_funcs.get_id(i)
        print('  %s%s%s) %sUnfollowing %s> %s%s' %
              (W0, str(count), R0, W0, R0, W0, i))
        api.unfollow(user_id)
def unfollowall():
	whitelist = open("whitelist.txt").read().splitlines()
	count = 0
	for i in followings:
		if i not in whitelist:
			count +=1
			time.sleep(float( random.uniform(min_delay*10,max_delay*10) / 10 ))
			print(str(count)+") Unfollowing "+i)
			user_id = aux_funcs.get_id(i)
			api.unfollow(user_id)
Example #9
0
def follow_user():
    userstofollow = ['are_sharmajee', '_sharmajee', '__sharmajee']
    count = 0
    for user in userstofollow:
        user_id = aux_funcs.get_id(user)
        time.sleep(float(random.uniform(min_delay * 10, max_delay * 10) / 10))
        count += 1
        print(
            str(count) + ") Following : " + user + " with user id : " +
            user_id)
        api.follow(user_id)
def follow_list(target):
	user_list = open(target).read().splitlines()
	tot = 0
	for username in user_list:
		time.sleep(float( random.uniform(min_delay*10,max_delay*10) / 10 ))
		user_id = aux_funcs.get_id(username)
		api.follow(user_id)
		tot += 1
		print("Following "+str(username)+" (with id "+str(user_id)+")")
		if(tot>=MAXIMO):
			break
	print("Total: "+str(tot)+" users followed from "+str(target)+" (Max val: "+str(MAXIMO)+")\n")
def follow_location(target):
	api.getLocationFeed(target)
	media_id = api.LastJson
	tot = 0
	for i in media_id.get("items"):
		time.sleep(float( random.uniform(min_delay*10,max_delay*10) / 10 ))
		username = i.get("user").get("username")
		user_id = aux_funcs.get_id(username)
		api.follow(user_id)
		tot += 1
		print("Following "+str(username)+" (with id "+str(user_id)+")")
		if(tot>=MAXIMO):
			break
	print("Total: "+str(tot)+" for location "+str(target)+" (Max val: "+str(MAXIMO)+")\n")
Example #12
0
def main():
    try:
        args = aux_funcs.get_args()
        api = InstagramAPI(args.user, args.password)
        api.login()
        user_id = aux_funcs.get_id(str(args.target))
        try:
            print "Getting user feed. This may take a long time"
            photos_ids = api.getTotalUserFeed(user_id)
            print "Done! \n\nLiking all photos"
            for p in photos_ids:
                api.like(p.get("id"))
                time.sleep(delay_seconds)
            print "Done!"

        except:
            print "Unable to get user feed. Maybe account is private?"

    except:
        printUsage()
def followOneFollower(username):
	user_id = aux_funcs.get_id(username)
	api.follow(user_id)
	print("Following "+username+" (with id "+user_id+")")	
def superUnfollow():
	for i in followings:
			if i not in followers:
				user_id = aux_funcs.get_id(i)
				print("Unfollowing "+i+"(with id "+user_id+")")
				api.unfollow(user_id)