Using this repository, you will be able to install and use InstaPy with only very few steps.
Clone or download
.If you're using one of the template files, make sure to copy and paste them into the same folder as the quickstart.py file is and then rename it to quickstart.py because that is the name of the file that will be chosen once you double click the run script.
To get started quickly we've prepared a basic quickstart file in which you only have to edit the username and password, inside the single quotes, to make sure you're all set up. After testing your installation by starting InstaPy once, you can go in and use the documentation to configure your personal bot.
The basic quickstart file looks like this:
""" 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)
When adding lines to the script, make sure to use a code editor which takes care of the indentation. Otherwise you will get an error upon execution.
pip install instapy
?If you've used InstaPy before the update to PyPi that allows installing with pip install instapy
, you have to move your database and log files into the new workspace directory.
Check out this very short guide on what to do!
If you should encounter any problem with the installation, please use the main repository InstaPy to report the issue instead of this repository.