Пример #1
0
try:
    instagram = Instagram()

    instagram.open()

    instagram.login(USERNAME, PASSWORD)

    while True:
        instagram.wait()
        instagram.follow_followers(USERNAME)
        instagram.wait()
        instagram.like_photos_with_tag_list(
            ["puppy", "pequines", "cachorro", "animal", "dog", "cute"])

        # q = input("Press:\n1) Follow Followers\n2) Like photos by Tag list\n0) Quit\n")

        # if q == "1":
        #    instagram.follow_followers(USERNAME)

        # elif q == "2":
        #    instagram.like_photos_with_tag_list(["puppy", "pequines", "cachorro", "animal", "dog", "cute"])

        # else:
        #    break
except Exception as e:
    print("Aconteceu um erro: ")
    print(e)
    instagram.close()
finally:
    instagram.close()
Пример #2
0
import pickle
from instagram import Instagram

#####################################
#####################################
#####################################
#enter your new password here and run the program
updatepass = "******"

#####################################
#####################################
#####################################

usrname = '_akash__06_'  #constant
pwd = None
currpwd = pickle.load(open("PasswordFile.p", "rb"))

myID = Instagram(usrname, currpwd)
#myID.logIn()
#myID.changePassword(updatepass)
print(myID.Password())
myID.close()