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 :: sort in python 
Python :: end in print python 
Python :: how to know if a key is in a dictionary python 
Python :: convert string to lowercase python 
Python :: create endpoint in python 
Python :: conda install pypy 
Python :: flask blueprint 
Python :: resample ohlc pandas 
Python :: add a button on tkinter 
Python :: python string to list of int 
Python :: how to make button in python 
Python :: - inf in python 
Python :: python function vs lambda 
Python :: async python 
Python :: fibonacci series using dynamic programmig approach 
Python :: splitting column values in pandas 
Python :: gráfico barras python 
Python :: python glfw 
Python :: how to empty a dictionary in python 
Python :: python do something while waiting for input 
Python :: how to select top 5 in every group pandas 
Python :: how to check any script is running in background linux using python 
Python :: delete occurrences of an element if it occurs more than n times python 
Python :: python split string keep delimiter 
Python :: python file back to beginning 
Python :: binary to string python 
Python :: scikit learn roc curve 
Python :: python 3.7 install snakemake 
Python :: get the name of all files in a computer in python 
Python :: python binary search 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =