Instapy problem,why doesnt the code work?

202 views Asked by At
from instapy import InstaPy
from instapy import smart_run
import time

my_username = '_georgekazaras'
my_password = 'mypassword'

def job():
    session = InstaPy(username=my_username,
                      password=my_password)

    with smart_run(session):
        session.set_relationship_bounds(enabled=True,
                                        delimit_by_numbers=True,
                                        max_followers=90000000000000,
                                        min_followers=1,
                                        min_following=30)
        session.set_do_follow(True, precentage=100)
        session.set_dont_like(['tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6', 'tag7'])
        session.like_by_tags(['cars', 'chess', 'sports'])

job()

I tried getting the code out of the function to see if it helps but it didnt, is the library not working anymore ,is iit maybe because of my instagram settings or is it something about the code ?

0

There are 0 answers