# (only follows a user once (if unfollowed again)) t_comments(['Nice shot! media='Photo')įollowing # default enabled=False, follows ~ 10% of the users from the images, times=1 # and you can add the username of the poster to the comment by using
# you can also set comments for specific media types (Photo / Video) t_do_comment(enabled=True, percentage=25) Session scheduling with Telegram InstaPy Available Features Commenting # default enabled=False, ~ every 4th image will be commented on Session = InstaPy(username=insta_username, password=insta_password) # simply add nogui=True to the InstaPy() constructor # if you want to run this script on a server, At project root folder open quickstart.py and update with your username and password. Set it up yourself with this Basic Setupīasic setup is a good way to test the tool. To exit an activated virtualenv run `deactivate'. Running source venv/bin/activate will activate the correct Python to run InstaPy. To make sure which Python is used, run which python, it will tell you which Python is 'active'. Remember to run it with Python from the virtualenv, so from venv/bin/python. Now copy/paste the quickstart.py Python code below and run your first InstaPy script.
All other Python libraries should be inside a virtualenv.
#Proxy for instagram bot install
In essence, this is be the only Python library you should install as root (e.g., with sudo). If you're not familiar with virtualenv, please read about it here and use it to your advantage.
The best way to install InstaPy is to create a virtualenv, install InstaPy there and run it from a separate file: 1.