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 :: replace substrings to float 
Python :: python pseudocode IF, ELSE statement 
Python :: adding the first place value and second value in python 
Python :: check if a variable is empty python 
Python :: TypeError: get() takes 1 positional argument but 2 were given 
Python :: any(iterable) 
Python :: aw mustard 
Python :: sending whatsapp message from python notebook 
Python :: django file field from base64 
Python :: pandas backward fill after upsampling 
Python :: python check if class has any methods 
Python :: build the .pyx file to c and run on python 
Python :: python program to remove comment lines 
Python :: fill turtle python 3 
Python :: use python logging to log user ips+time in a file whenever a request comes to the server, this should be done in a custom middleware. 
Python :: Overwrite text in python 
Python :: accessing list elements in python 
Python :: postgtres settings.py setup with django 
Python :: generate a random string with lowercase uppercase and numbers 
Python :: python Write a program to reverse an array or string 
Python :: getroot xml python 
Python :: Instance Method With Property In Python 
Python :: python convert string object to int object 
Python :: pytrend 
Python :: long format to short in python 
Python :: tweepy to dataframe 
Python :: python created nested directory 
Python :: upper method in python 
Python :: list(my_enumerate(your_sequence)) == list(enumerate(your_sequence)) 
Python :: what is a console in pythonanywhere 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =