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 :: new sytax in python 3 
Python :: "How to get the remainder of a number when dividing in python" 
Python :: pip install rejson 
Python :: logistic regresion heart disease python 
Python :: python http handler iis 
Python :: python string copy 
Python :: python gpsd client 
Python :: r Return each result with an index 
Python :: how to iterate a dictionary with minimum value in python 
Python :: aw mustard 
Python :: python second max in numpy array 
Python :: python break out of function 
Python :: /bin/sh: 1: python: not found code runner 
Python :: make setup file for cython 
Python :: number guessing game using tkinter python 
Python :: checking if something is true. infinite 
Python :: find factorial of a number in python 
Python :: print n times 
Python :: Print feature importance per feature 
Python :: how to get each word in a string in python 
Python :: Copy an Object in Python using = operator 
Python :: tables in django 
Python :: python async await function await expression 
Python :: Python | Largest, Smallest, Second Largest, Second Smallest in a List 
Python :: property values 
Python :: print(((x//y)+1)*z) means in python 
Python :: python recognize lower and upper case user input 
Python :: python created nested directory 
Python :: python sort_values 
Python :: python dash bootstrap buttons with icons 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =