Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

instagram python bot

""" Quickstart script for InstaPy usage """
# imports
from instapy import InstaPy
from instapy import smart_run

# login credentials
insta_username = ''  # <- enter username here
insta_password = ''  # <- enter password here

# get an InstaPy session!
# set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False)

with smart_run(session):
    """ Activity flow """
    # general settings
    session.set_relationship_bounds(enabled=True,
                                    delimit_by_numbers=True,
                                    max_followers=4590,
                                    min_followers=45,
                                    min_following=77)

    session.set_dont_include(["friend1", "friend2", "friend3"])
    session.set_dont_like(["pizza", "#store"])

    # activity
    session.like_by_tags(["natgeo"], amount=10)
Comment

python instagram bot

from time import sleep
from selenium import webdriver

browser = webdriver.Firefox()

browser.get('https://www.instagram.com/')

sleep(5)

browser.close()
Comment

PREVIOUS NEXT
Code Example
Python :: float in python 
Python :: fastest way to check odd or even in python 
Python :: how to save python variables locally 
Python :: sort pandas dataframe by specific column 
Python :: python self usage 
Python :: RSA with python 
Python :: on_delete django options 
Python :: django filter on related field 
Python :: pyqt5 buttons 
Python :: partition python 
Python :: how to make a calcukatir 
Python :: jquery datepicker disable 
Python :: python boto3 put_object to s3 
Python :: list operations in python 
Python :: what is manage.py 
Python :: opencv rgb to gray custom 
Python :: convert uppercase to lowercase and vice versa in python 
Python :: put grid behind matplotlib 
Python :: socket for api in django 
Python :: sort dict based on other list 
Python :: TypeError: cannot unpack non-iterable float object evaluate 
Python :: pandas dataframe total column 
Python :: think python 
Python :: hur många partier sitter i riksdagen 
Python :: nested input python 
Python :: Checking Availability of user inputted File name 
Python :: python gmail 
Python :: flatten a list of lists python 
Shell :: install imagick php ubuntu 
Shell :: expo fix dependencies 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =