Пример #1
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()
Пример #2
0
import aux_funcs, sys, json, time, random
from LevPasha.InstagramAPI import InstagramAPI

followers = []
followings = []
args = aux_funcs.get_args()
api = InstagramAPI(args.user, args.password)

### Delay in seconds ###
unfollow_delay = 5
follow_delay = 1


def printUsage():
    print(
        "Usage: \n+ python main.py -u USERNAME -p PASSWORD -o info: Show report"
    )
    print(
        "+ python main.py -u USERNAME -p PASSWORD -o follow-tag -t TAG: Follow users using the tags you introduce"
    )
    print(
        "+ python main.py -u USERNAME -p PASSWORD -o follow-location -t LOCATION_ID: Follow users from a location"
    )
    print(
        "+ python main.py -u USERNAME -p PASSWORD -o super-followback: Follow back all the users who you dont follow back"
    )
    print(
        "+ python main.py -u USERNAME -p PASSWORD -o super-unfollow: Unfollow all the users who dont follow you back"
    )
    print(
        "+ python main.py -u USERNAME -p PASSWORD -o unfollow-all: Unfollow all the users"