from instapy import InstaPy
from instapy import smart_run
import time
# login credentials
insta_username = ''
insta_password = ''
cycle=0
session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False)
with smart_run(session):
    while 1<2:
        cycle +=1
        print("\n\nLOOP {}\n",cycle)
        session.accept_follow_requests(amount=100, sleep_delay=1)
        time.sleep(5)
 
  
