├── run
├── linux_start.sh
├── raspberrypi_start.sh
├── windows_start.bat
├── mac_start.command
└── README.md
├── installation
├── RaspberryPi
│ └── .gitkeep
├── Linux
│ ├── update.sh
│ └── install.sh
├── MacOs
│ ├── update.command
│ └── install.command
├── Windows
│ ├── update.bat
│ └── install.bat
└── README.md
├── .replit
├── quickstart_templates
├── README.md
├── super_simple_setting_for_crontab.py
├── simple_but_effective.py
├── massive_follow_then_unfollow_works-non-stop.py
├── simple_interaction_good_for_beginners.py
├── like_by_tag_interact_unfollow.py
├── basic_follow-unfollow_activity.py
├── playing_around_with_quota_supervisor.py
├── target_followers_of_similar_accounts_and_influencers.py
├── stylish_unfollow_tips_and_like_by_tags.py
├── follow_unfollow_and_send_telegram_msg.py
├── good_usage_of_blacklist.py
├── good_commenting_strategy_and_new_qs_system.py
└── friends_last_post_likes_and_interact_with_user_based_on_hashtahs.py
├── quickstart.py
├── .gitignore
├── README.md
└── LICENSE
/run/linux_start.sh:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/run/raspberrypi_start.sh:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/installation/RaspberryPi/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.replit:
--------------------------------------------------------------------------------
1 | language = "python3"
2 | run = "pip install instapy"
--------------------------------------------------------------------------------
/installation/Linux/update.sh:
--------------------------------------------------------------------------------
1 | # Simple update script for Linux
2 |
3 | echo "Updating InstaPy..."
4 | echo "===================="
5 | pip install -U instapy
6 |
--------------------------------------------------------------------------------
/run/windows_start.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | echo starting instapy with quickstart
4 | echo ================================
5 |
6 | python ../quickstart.py
7 |
8 | pause
9 |
--------------------------------------------------------------------------------
/installation/MacOs/update.command:
--------------------------------------------------------------------------------
1 | # Simple update script for MacOS
2 |
3 | echo "Updating InstaPy..."
4 | echo "===================="
5 | pip install -U instapy
6 | clear
7 | pip show instapy
8 | echo "This window will close in 30 seconds or you may choose to exit now once done viewing version info"
9 | sleep 30
10 |
--------------------------------------------------------------------------------
/run/mac_start.command:
--------------------------------------------------------------------------------
1 | # Mac script that simply executes the quickstart file in the root folder
2 | # of this repository with python
3 |
4 | echo "Starting InstaPy with quickstart"
5 | echo "===================="
6 | # get absolute path of the dir
7 | BASEDIR=$(dirname "$BASH_SOURCE")
8 | cd $BASEDIR
9 | python ../quickstart.py
10 |
11 |
--------------------------------------------------------------------------------
/quickstart_templates/README.md:
--------------------------------------------------------------------------------
1 | ## How to use the templates?
2 |
3 | It's really easy, just download one of the template files to your system and edit the username and password and adjust the lists to fit your needs.
4 |
5 | #### ⚠️ Caution
6 | Some of the follow/liking limits may not be best to use with Instagram's ever changing limits.
7 | **Start small and play around with these.**
8 |
9 | ###### Have fun & stay responsible
10 |
--------------------------------------------------------------------------------
/installation/Windows/update.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 |
3 | pip install -U instapy
4 | if ERRORLEVEL 1 GOTO :failure
5 | if not ERRORLEVEL 1 GOTO :success
6 |
7 | REM[used when update failed]
8 | :failure
9 | cls
10 | echo An error occured. please try again. If the error persists please contact a developer.
11 | pause
12 | GOTO :EOF
13 |
14 | REM[used when update is successful. also displays instapy version]
15 | :success
16 | cls
17 | pip show instapy
18 | echo Update successful! The version of instapy is displayed above.
19 | pause
--------------------------------------------------------------------------------
/run/README.md:
--------------------------------------------------------------------------------
1 | > **Please Note**: The scripts for Linux and RaspberryPi still have to be added!
2 |
3 | ### Starting InstaPy
4 |
5 | Starting InstaPy with the start scripts is as easy as double clicking the file for your system.
6 | A command line will open and start to run InstaPy for you.
7 | The actions taken by InstaPy will be logged there.
8 |
9 | > If you see any error messages, please search the [issues](https://github.com/timgrossmann/InstaPy/issues) for your error, there most likely already will be a solution to that.
10 |
--------------------------------------------------------------------------------
/installation/README.md:
--------------------------------------------------------------------------------
1 | > **Please Note**: The scripts for Linux and RaspberryPi still have to be added!
2 |
3 | ### Installation
4 |
5 | Installing InstaPy is really simple. Just choose the folder of the system you are using and double click the installation file.
6 | A small Terminal will open up and check if everything necessary is installed.
7 | Once that is done you will see it downloading and installing InstaPy.
8 |
9 | > If you don't see any error messages, InstaPy is successfully installed. Otherwise, please search the [issues](https://github.com/timgrossmann/InstaPy/issues) for your error, there most likely already will be a solution to that.
10 |
11 |
12 | ---
13 |
14 | ### Updating InstaPy
15 |
16 | In order to update InstaPy you simply choose the folder of the system you are using and then double click the update file.
17 |
--------------------------------------------------------------------------------
/quickstart.py:
--------------------------------------------------------------------------------
1 | # imports
2 | from instapy import InstaPy
3 | from instapy import smart_run
4 |
5 | # login credentials
6 | insta_username = ''
7 | insta_password = ''
8 |
9 | comments = ['Nice shot! @{}',
10 | 'I love your profile! @{}',
11 | 'Your feed is an inspiration :thumbsup:',
12 | 'Just incredible :open_mouth:',
13 | 'What camera did you use @{}?',
14 | 'Love your posts @{}',
15 | 'Looks awesome @{}',
16 | 'Getting inspired by you @{}',
17 | ':raised_hands: Yes!',
18 | 'I can feel your passion @{} :muscle:']
19 |
20 | # get an InstaPy session!
21 | # set headless_browser=True to run InstaPy in the background
22 | session = InstaPy(username=insta_username,
23 | password=insta_password,
24 | headless_browser=False)
25 |
26 | with smart_run(session):
27 | """ Activity flow """
28 | # general settings
29 | session.set_dont_include(["friend1", "friend2", "friend3"])
30 |
31 | # activity
32 | session.like_by_tags(["natgeo"], amount=10)
33 |
34 | # Joining Engagement Pods
35 | session.set_do_comment(enabled=True, percentage=35)
36 | session.set_comments(comments)
37 | session.join_pods(topic='sports', engagement_mode='no_comments')
38 |
--------------------------------------------------------------------------------
/quickstart_templates/super_simple_setting_for_crontab.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @Edhim
3 |
4 | What does this quickstart script aim to do?
5 | - I am using simple settings for my personal account with a crontab each 3H,
6 | it's been working since 5 months with no problem.
7 | """
8 |
9 | from instapy import InstaPy
10 | from instapy import smart_run
11 |
12 | # get a session!
13 | session = InstaPy(username='', password='')
14 |
15 | # let's go! :>
16 | with smart_run(session):
17 | # settings
18 | session.set_relationship_bounds(enabled=False,
19 | potency_ratio=-1.21,
20 | delimit_by_numbers=True,
21 | max_followers=4590,
22 | max_following=5555,
23 | min_followers=45,
24 | min_following=77)
25 | session.set_do_comment(True, percentage=50)
26 | session.set_comments(['aMazing!', 'So cool!!', 'Nice!', 'wow looks nice!',
27 | 'Just incredible :open_mouth:',
28 | 'What camera did you use @{}?',
29 | 'Love your posts @{}',
30 | 'Looks awesome @{}',
31 | 'Getting inspired by you @{}',
32 | 'this is awesome!'])
33 |
34 | # activity
35 | session.like_by_tags(
36 | ['xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx',
37 | 'xxx', 'xxx', 'xxx'],
38 | amount=8, skip_top_posts=True)
39 |
40 | """ Joining Engagement Pods...
41 | """
42 | session.join_pods(topic='entertainment', engagement_mode='light')
43 |
--------------------------------------------------------------------------------
/installation/Linux/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Simple installation script for Linux
3 |
4 | echo "Unix InstaPy Setup"
5 | echo =============================================================================================
6 | arch=$(getconf LONG_BIT)
7 | kernel=$(uname)
8 | echo "Installing depedencies..."
9 | if [ $kernel == "Darwin" ]; then
10 | echo "MacOS System detected"
11 | else
12 | sudo apt-get update
13 | sudo apt-get -y upgrade
14 | sudo apt-get -y install unzip python3-pip python3-dev build-essential libssl-dev libffi-dev xvfb
15 | sudo pip3 install --upgrade pip
16 | pip install clarifai --upgrade
17 | export LANGUAGE=en_US.UTF-8
18 | export LANG=en_US.UTF-8
19 | export LC_ALL=en_US.UTF-8
20 | locale-gen en_US.UTF-8
21 | sudo dpkg-reconfigure locales
22 | sudo pip3 install --upgrade pip
23 | pushd ~
24 | wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
25 | sudo dpkg -i google-chrome-stable_current_amd64.deb
26 | sudo apt-get install -y -f
27 | sudo rm google-chrome-stable_current_amd64.deb
28 | pushd -0
29 |
30 | arch=$(uname -m)
31 | if [ $arch == "x86_64" ]; then
32 | wget https://ftp.mozilla.org/pub/firefox/releases/68.0/linux-x86_64/en-US/firefox-68.0.tar.bz2
33 | else
34 | wget https://ftp.mozilla.org/pub/firefox/releases/68.0/linux-i686/en-US/firefox-68.0.tar.bz2
35 | fi
36 |
37 | tar -xjf firefox-68.0.tar.bz2
38 | sudo mv firefox /opt/firefox68
39 | sudo ln -s /opt/firefox68/firefox-bin /usr/bin/firefox
40 | rm firefox-68.0.tar.bz2
41 | fi
42 | echo
43 | echo "Installing InstaPy..."
44 | sudo pip install instapy --ignore-installed
45 | pushd -0
46 | echo "Setup is completed."
47 | read -p "Press any key to continue..." key
48 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
3 | # Byte-compiled / optimized / DLL files
4 | __pycache__/
5 | *.py[cod]
6 | *$py.class
7 |
8 | # C extensions
9 | *.so
10 |
11 | # Distribution / packaging
12 | .Python
13 | build/
14 | develop-eggs/
15 | dist/
16 | downloads/
17 | eggs/
18 | .eggs/
19 | lib/
20 | lib64/
21 | parts/
22 | sdist/
23 | var/
24 | wheels/
25 | *.egg-info/
26 | .installed.cfg
27 | *.egg
28 | MANIFEST
29 |
30 | # PyInstaller
31 | # Usually these files are written by a python script from a template
32 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
33 | *.manifest
34 | *.spec
35 |
36 | # Installer logs
37 | pip-log.txt
38 | pip-delete-this-directory.txt
39 |
40 | # Unit test / coverage reports
41 | htmlcov/
42 | .tox/
43 | .coverage
44 | .coverage.*
45 | .cache
46 | nosetests.xml
47 | coverage.xml
48 | *.cover
49 | .hypothesis/
50 | .pytest_cache/
51 |
52 | # Translations
53 | *.mo
54 | *.pot
55 |
56 | # Django stuff:
57 | *.log
58 | local_settings.py
59 | db.sqlite3
60 |
61 | # Flask stuff:
62 | instance/
63 | .webassets-cache
64 |
65 | # Scrapy stuff:
66 | .scrapy
67 |
68 | # Sphinx documentation
69 | docs/_build/
70 |
71 | # PyBuilder
72 | target/
73 |
74 | # Jupyter Notebook
75 | .ipynb_checkpoints
76 |
77 | # pyenv
78 | .python-version
79 |
80 | # celery beat schedule file
81 | celerybeat-schedule
82 |
83 | # SageMath parsed files
84 | *.sage.py
85 |
86 | # Environments
87 | .env
88 | .venv
89 | env/
90 | venv/
91 | ENV/
92 | env.bak/
93 | venv.bak/
94 |
95 | # Spyder project settings
96 | .spyderproject
97 | .spyproject
98 |
99 | # Rope project settings
100 | .ropeproject
101 |
102 | # mkdocs documentation
103 | /site
104 |
105 | # mypy
106 | .mypy_cache/
107 |
--------------------------------------------------------------------------------
/quickstart_templates/simple_but_effective.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @zackvega
3 |
4 | What does this quickstart script aim to do?
5 | - This is my simple but effective script.
6 | """
7 |
8 | from instapy import InstaPy
9 | from instapy import smart_run
10 |
11 | insta_username = ''
12 | insta_password = ''
13 |
14 | # get a session!
15 | session = InstaPy(username=insta_username,
16 | password=insta_password,
17 | headless_browser=True,
18 | multi_logs=True)
19 |
20 | # let's go! :>
21 | with smart_run(session):
22 | # general settings
23 | session.set_relationship_bounds(enabled=True,
24 | potency_ratio=None,
25 | delimit_by_numbers=True,
26 | max_followers=6000,
27 | max_following=3000,
28 | min_followers=30,
29 | min_following=30)
30 | session.set_user_interact(amount=2, randomize=True, percentage=30,
31 | media='Photo')
32 | session.set_do_like(enabled=True, percentage=100)
33 | session.set_do_comment(enabled=True, percentage=5)
34 | session.set_comments(
35 | ['Nice shot! @{}', 'I love your profile! @{}', '@{} Love it!',
36 | '@{} :heart::heart:',
37 | 'Love your posts @{}',
38 | 'Looks awesome @{}',
39 | 'Getting inspired by you @{}',
40 | ':raised_hands: Yes!',
41 | '@{}:revolving_hearts::revolving_hearts:', '@{}:fire::fire::fire:'],
42 | media='Photo')
43 |
44 | # unfollow activity
45 | session.unfollow_users(amount=126, nonFollowers=True, style="RANDOM",
46 | unfollow_after=42 * 60 * 60, sleep_delay=300)
47 |
48 | # follow activity
49 | ammount_number = 500
50 | session.follow_user_followers(['chrisburkard', 'danielkordan'],
51 | amount=ammount_number, randomize=False,
52 | interact=True, sleep_delay=240)
53 |
54 | """ Joining Engagement Pods...
55 | """
56 | session.join_pods(topic='entertainment', engagement_mode='no_comments')
57 |
--------------------------------------------------------------------------------
/quickstart_templates/massive_follow_then_unfollow_works-non-stop.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @loopypanda
3 |
4 | What does this quickstart script aim to do?
5 | - My settings is for running InstaPY 24/7 with approximately 1400
6 | follows/day - 1400 unfollows/day running follow until reaches 7500 and than
7 | switch to unfollow until reaches 0.
8 | """
9 |
10 | from instapy import InstaPy
11 | from instapy import smart_run
12 |
13 | # get a session!
14 | session = InstaPy(username='', password='')
15 |
16 | # let's go! :>
17 | with smart_run(session):
18 | # general settings
19 |
20 | # session.set_relationship_bounds(enabled=True,
21 | # delimit_by_numbers=False, max_followers=12000, max_following=4500,
22 | # min_followers=35, min_following=35)
23 | # session.set_user_interact(amount=2, randomize=True, percentage=100,
24 | # media='Photo')
25 | session.set_do_follow(enabled=True, percentage=100)
26 | session.set_do_like(enabled=True, percentage=100)
27 | # session.set_comments(["Cool", "Super!"])
28 | # session.set_do_comment(enabled=False, percentage=80)
29 | # session.set_user_interact(amount=2, randomize=True, percentage=100,
30 | # media='Photo')
31 |
32 | # activity
33 |
34 | # session.interact_user_followers(['user1', 'user2', 'user3'],
35 | # amount=8000, randomize=True)
36 | # session.follow_user_followers(['user1', 'user2', 'user3'],
37 | # amount=8000, randomize=False, interact=True)
38 | # session.unfollow_users(amount=7500, nonFollowers=True, style="RANDOM",
39 | # unfollow_after=42*60*60, sleep_delay=3)
40 | session.like_by_tags(['???'], amount=8000)
41 |
42 | """ Joining Engagement Pods...
43 | """
44 | photo_comments = ['Nice shot! @{}',
45 | 'I love your profile! @{}',
46 | 'Your feed is an inspiration :thumbsup:',
47 | 'Just incredible :open_mouth:',
48 | 'What camera did you use @{}?',
49 | 'Love your posts @{}',
50 | 'Looks awesome @{}',
51 | 'Getting inspired by you @{}',
52 | ':raised_hands: Yes!',
53 | 'I can feel your passion @{} :muscle:']
54 | session.set_do_comment(enabled = True, percentage = 95)
55 | session.set_comments(photo_comments, media = 'Photo')
56 | session.join_pods(topic='food')
57 |
--------------------------------------------------------------------------------
/quickstart_templates/simple_interaction_good_for_beginners.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @Tachenz
3 |
4 | What does this quickstart script aim to do?
5 | - Interact with user followers, liking 3 pictures, doing 1-2 comment - and
6 | 25% chance of follow (ratios which work the best for my account)
7 |
8 | NOTES:
9 | - This is used in combination with putting a 40 sec sleep delay after every
10 | like the script does. It runs 24/7 at rather slower speed, but without
11 | problems (so far).
12 | """
13 |
14 | from instapy import InstaPy
15 | from instapy import smart_run
16 |
17 | # get a session!
18 | session = InstaPy(username='', password='')
19 |
20 | photo_comments = ['Nice shot! @{}',
21 | 'I love your profile! @{}',
22 | 'Your feed is an inspiration :thumbsup:',
23 | 'Just incredible :open_mouth:',
24 | 'What camera did you use @{}?',
25 | 'Love your posts @{}',
26 | 'Looks awesome @{}',
27 | 'Getting inspired by you @{}',
28 | ':raised_hands: Yes!',
29 | 'I can feel your passion @{} :muscle:']
30 |
31 | # let's go! :>
32 | with smart_run(session):
33 | # settings
34 | session.set_user_interact(amount=3, randomize=True, percentage=100,
35 | media='Photo')
36 | session.set_relationship_bounds(enabled=True,
37 | potency_ratio=None,
38 | delimit_by_numbers=True,
39 | max_followers=3000,
40 | max_following=900,
41 | min_followers=50,
42 | min_following=50)
43 | session.set_simulation(enabled=False)
44 | session.set_do_like(enabled=True, percentage=100)
45 | session.set_ignore_users([])
46 | session.set_do_comment(enabled=True, percentage=35)
47 | session.set_do_follow(enabled=True, percentage=25, times=1)
48 | session.set_comments(photo_comments)
49 | session.set_ignore_if_contains([])
50 | session.set_action_delays(enabled=True, like=40)
51 |
52 | # activity
53 | session.interact_user_followers([], amount=340)
54 |
55 | """ Joining Engagement Pods...
56 | """
57 | session.join_pods(topic='entertainment', engagement_mode='no_comments')
58 | """
59 | -- REVIEWS --
60 |
61 | @Andercorp:
62 | - This would probably be the best temp for new accounts to start slowly and
63 | gently and then as your account gather IG authority, you could put some more
64 | power to your temp/bot...
65 |
66 | @uluQulu:
67 | - @Tachenz, the values in your script took my attention, it will be very
68 | good for new starters, as @Andercorp said. Stunning!
69 |
70 | """
71 |
--------------------------------------------------------------------------------
/installation/MacOs/install.command:
--------------------------------------------------------------------------------
1 | # Simple installation script for MacOS
2 |
3 | if [ $kernel != "Darwin" ]; then
4 | echo "Non MacOS System detected, please use the right installtion file for your system"
5 | else
6 | DONE_STEPS=0
7 |
8 | # Check if Python is installed
9 | if command -v python &>/dev/null; then
10 | echo "Python is installed"
11 | DONE_STEPS=`expr $DONE_STEPS + 1`
12 | else
13 | echo "Please install the latest version of Python from https://www.python.org/downloads/"
14 | echo
15 | echo "Sorry for the inconveniences"
16 | fi
17 |
18 | echo "===================="
19 |
20 | # Check if pip is installed
21 | if command -v pip &>/dev/null; then
22 | echo Pip is installed
23 | DONE_STEPS=`expr $DONE_STEPS + 1`
24 | else
25 | echo "Installing pip..."
26 | curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
27 |
28 | # Asking for PW for user installation
29 | echo "Please insert your password in order to install pip"
30 | sudo python get-pip.py
31 | rm get-pip.py
32 |
33 | # Check if it's installed now
34 | if command -v pip &>/dev/null; then
35 | echo "Pip has been successfilly installed"
36 | DONE_STEPS=`expr $DONE_STEPS + 1`
37 | else
38 | echo "Pip could not be installed, please manually install pip using this resource: https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x"
39 | echo
40 | echo "Sorry for the inconveniences"
41 | fi
42 | fi
43 |
44 | echo "===================="
45 |
46 | # Check if Chrome is installed at default location
47 | CHROMEPATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
48 | if [ -x "$CHROMEPATH" ]; then
49 | echo "Chrome is installed"
50 | DONE_STEPS=`expr $DONE_STEPS + 1`
51 | else
52 | echo "Please make sure that Chrome is installed. If not, please install the latest version of Chrome from https://www.google.com/chrome/"
53 | echo
54 | echo "Sorry for the inconveniences"
55 | fi
56 |
57 | echo "===================="
58 |
59 | # Checking if InstaPy can be installed and installing InstaPy
60 | if [ $DONE_STEPS = 3 ]; then
61 | echo "Installing InstaPy..."
62 | pip install instapy
63 |
64 | echo "===================="
65 |
66 | # Checking if it was installed
67 | PIP_INSTALLS="$(pip list)"
68 | if [[ $PIP_INSTALLS = *"instapy"* ]]; then
69 | echo "Successfully installed InstaPy!"
70 | else
71 | echo "There was a problem installing InstaPy, please copy the error message and create an issue here: https://github.com/InstaPy/instapy-quickstart/issues"
72 | echo
73 | echo "You can also manually install InstaPy with this guide: https://github.com/timgrossmann/InstaPy"
74 | echo
75 | echo "Sorry for the inconveniences"
76 | fi
77 |
78 | else
79 | echo "Error! - Please double check the installation of Python, pip, and Chrome \nSorry for the inconveniences"
80 | fi
81 | fi
--------------------------------------------------------------------------------
/installation/Windows/install.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | REM[Check for administrator privileges]
4 | net session >nul 2>&1
5 | if %errorLevel% == 0 (
6 | echo Administrative permissions confirmed
7 | echo.
8 | ) else (
9 | echo.
10 | echo Administrator privileges not found
11 | echo Rerun this file with Administrative privileges
12 | echo.
13 | pause
14 | GOTO :EOF
15 | )
16 |
17 | REM[Checking if python is installed. If not, let the user know and quit.]
18 | python --version
19 | if ERRORLEVEL 1 GOTO :pythonNotInstalledExit
20 | if not ERRORLEVEL 1 GOTO :pythonInstalled
21 |
22 | :pythonInstalled
23 | echo python installed
24 |
25 | REM[Checking if pip is installed, If not, install it.]
26 | pip --version
27 | if ERRORLEVEL 1 GOTO :errorNoPip
28 | if not ERRORLEVEL 1 GOTO :pipInstalled
29 |
30 | :errorNoPip
31 | echo Error: Pip not installed, installing now
32 | REM[The following two lines download and install pip.]
33 | curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
34 | python get-pip.py
35 |
36 | :pipInstalled
37 | echo pip installed
38 |
39 | REM[Checking for chrome in the program file x86 version of the chrome standard directory]
40 | cd "C:\Program Files (x86)\Google\Chrome\Application"
41 | if ERRORLEVEL 1 GOTO :checkChromeV2
42 | if not ERRORLEVEL 1 echo directory found.. checking for chrome
43 | if EXIST "chrome.exe" GOTO :chromeInstalled
44 | if not EXIST "chrome.exe" GOTO :chromeNotInstalledExit
45 |
46 | REM[Checking for chrome in the program files version of the chrome standard directory]
47 | :checkChromeV2
48 | cd "C:\Program Files\Google\Chrome\Application"
49 | if ERRORLEVEL 1 GOTO :chromeNotInstalledExit
50 | if not ERRORLEVEL 1 echo directory found.. checking for chrome
51 | if EXIST "chrome.exe" GOTO :chromeInstalled
52 | if not EXIST "chrome.exe" GOTO :chromeNotInstalledExit
53 |
54 | :chromeInstalled
55 | echo chrome installed
56 |
57 | pip install instapy
58 | cls
59 |
60 | echo BATCH SESSION SUCCESSFUL(PYTHON, PIP, CHROME, AND INSTAPY ALL VERIFIED AND INSTALLED) YOU MAY EXIT NOW
61 | pause
62 | GOTO :EOF
63 |
64 | REM[This goto is used when python is not installed on the users machine.]
65 | REM[Since it is a vital asset to InstaPy, the script is not allowed to continue until python is verified and installed on the machine]
66 | :pythonNotInstalledExit
67 | echo python not installed
68 | echo you must install python before using InstaPy. please visit https://www.python.org/downloads/ and download the latest version of python 3 for your operating system.
69 | echo python installed: no
70 | echo pip installed: unchecked
71 | echo chrome installed: unchecked
72 | echo InstaPy installation: incompleted
73 | pause
74 | GOTO :EOF
75 |
76 | REM[this is used when chrome is not installed on the users machine.]
77 | REM[Since it is a vital asset to InstaPy, the script is not allowed to continue until chrome is verified and installed on the machine]
78 | :chromeNotInstalledExit
79 | echo chrome not installed
80 | echo you must install chrome before using InstaPy. please visit https://www.google.com/chrome/ and download the correct version for your operating system.
81 | echo python installed: yes
82 | echo pip installed: yes
83 | echo chrome installed: no
84 | echo InstaPy installation: incompleted
85 | pause
--------------------------------------------------------------------------------
/quickstart_templates/like_by_tag_interact_unfollow.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @timgrossmann
3 |
4 | What does this quickstart script aim to do?
5 | - This script is automatically executed every 6h on my server via cron
6 | """
7 |
8 | import random
9 | from instapy import InstaPy
10 | from instapy import smart_run
11 |
12 | # login credentials
13 | insta_username = ''
14 | insta_password = ''
15 |
16 | dont_likes = ['sex', 'nude', 'naked', 'beef', 'pork', 'seafood',
17 | 'egg', 'chicken', 'cheese', 'sausage', 'lobster',
18 | 'fisch', 'schwein', 'lamm', 'rind', 'kuh', 'meeresfrüchte',
19 | 'schaf', 'ziege', 'hummer', 'yoghurt', 'joghurt', 'dairy',
20 | 'meal', 'food', 'eat', 'pancake', 'cake', 'dessert',
21 | 'protein', 'essen', 'mahl', 'breakfast', 'lunch',
22 | 'dinner', 'turkey', 'truthahn', 'plate', 'bacon',
23 | 'sushi', 'burger', 'salmon', 'shrimp', 'steak',
24 | 'schnitzel', 'goat', 'oxtail', 'mayo', 'fur', 'leather',
25 | 'cream', 'hunt', 'gun', 'shoot', 'slaughter', 'pussy',
26 | 'breakfast', 'dinner', 'lunch']
27 |
28 | friends = ['list of friends I do not want to interact with']
29 |
30 | like_tag_list = ['vegan', 'veganfoodshare', 'veganfood', 'whatveganseat',
31 | 'veganfoodie', 'veganism', 'govegan',
32 | 'veganism', 'vegansofig', 'veganfoodshare', 'veganfit',
33 | 'veggies']
34 |
35 | # prevent posts that contain some plantbased meat from being skipped
36 | ignore_list = ['vegan', 'veggie', 'plantbased']
37 |
38 | accounts = ['accounts with similar content']
39 |
40 | # get a session!
41 | session = InstaPy(username=insta_username,
42 | password=insta_password,
43 | headless_browser=True)
44 |
45 | with smart_run(session):
46 | # settings
47 | session.set_relationship_bounds(enabled=True,
48 | max_followers=15000)
49 |
50 | session.set_dont_include(friends)
51 | session.set_dont_like(dont_likes)
52 | session.set_ignore_if_contains(ignore_list)
53 |
54 | session.set_user_interact(amount=2, randomize=True, percentage=60)
55 | session.set_do_follow(enabled=True, percentage=40)
56 | session.set_do_like(enabled=True, percentage=80)
57 |
58 | # activity
59 | session.like_by_tags(random.sample(like_tag_list, 3),
60 | amount=random.randint(50, 100), interact=True)
61 |
62 | session.unfollow_users(amount=random.randint(75, 150),
63 | InstapyFollowed=(True, "all"), style="FIFO",
64 | unfollow_after=90 * 60 * 60, sleep_delay=501)
65 |
66 | """ Joining Engagement Pods...
67 | """
68 | photo_comments = ['Nice shot! @{}',
69 | 'I love your profile! @{}',
70 | 'Wonderful :thumbsup:',
71 | 'Just incredible :open_mouth:',
72 | 'What camera did you use @{}?',
73 | 'Love your posts @{}',
74 | 'Looks awesome @{}',
75 | 'Getting inspired by you @{}',
76 | ':raised_hands: Yes!',
77 | 'I can feel your passion @{} :muscle:']
78 |
79 | session.set_do_comment(enabled = True, percentage = 95)
80 | session.set_comments(photo_comments, media = 'Photo')
81 | session.join_pods(topic='travel')
82 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # Instapy Quickstart
4 |
5 | ## Installation
6 | Using this repository, you will be able to install and use InstaPy with only very few steps.
7 |
8 | 1. Download the zip of this repository by clicking on the green button in the upper right corner `Clone or download`.
9 | 1. Unzip the folder and open the _installation folder_
10 | 1. Double click the installation file for your system
11 | 1. If you missed any installation it will tell you what you have to install
12 | 1. Once successfully installed you can edit the quickstart file or use any of the template files from the quickstart_templates folder
13 | 1. Insert your username and password and modify anything you want. Make use of the **[comprehensive documentation](https://github.com/timgrossmann/InstaPy)**.
14 | 1. The last step is to open the _run folder_ and double click the file that suits your platform, e.g. _mac_start.command_ for MacOS.
15 |
16 | > 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.
17 |
18 |
19 | ### Basic quickstart file
20 | 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.
21 | After testing your installation by starting InstaPy once, you can go in and use the [documentation](https://github.com/timgrossmann/InstaPy) to configure your personal bot.
22 |
23 | The basic quickstart file looks like this:
24 | ```python
25 | """ Quickstart script for InstaPy usage """
26 | # imports
27 | from instapy import InstaPy
28 | from instapy import smart_run
29 |
30 | # login credentials
31 | insta_username = '' # <- enter username here
32 | insta_password = '' # <- enter password here
33 |
34 | # get an InstaPy session!
35 | # set headless_browser=True to run InstaPy in the background
36 | session = InstaPy(username=insta_username,
37 | password=insta_password,
38 | headless_browser=False)
39 |
40 | with smart_run(session):
41 | """ Activity flow """
42 | # general settings
43 | session.set_relationship_bounds(enabled=True,
44 | delimit_by_numbers=True,
45 | max_followers=4590,
46 | min_followers=45,
47 | min_following=77)
48 |
49 | session.set_dont_include(["friend1", "friend2", "friend3"])
50 | session.set_dont_like(["pizza", "#store"])
51 |
52 | # activity
53 | session.like_by_tags(["natgeo"], amount=10)
54 | ```
55 |
56 | > 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.
57 |
58 | ---
59 |
60 | ### Already used InstaPy before `pip install instapy`?
61 | 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.
62 | [**Check out this very short guide on what to do!**](https://github.com/timgrossmann/InstaPy#migrating-your-data-to-the-workspace-folder)
63 |
64 | ---
65 |
66 | ### Encountering an issue while installing?
67 | If you should encounter any problem with the installation, please use the main repository [InstaPy](https://github.com/timgrossmann/InstaPy) to report the issue instead of this repository.
68 |
69 |
70 | ##### Have fun & stay responsible!
71 | [](https://repl.it/github/InstaPy/instapy-quickstart)
72 |
--------------------------------------------------------------------------------
/quickstart_templates/basic_follow-unfollow_activity.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @cormo1990
3 |
4 | What does this quickstart script aim to do?
5 | - Basic follow/unfollow activity.
6 |
7 | NOTES:
8 | - I don't want to automate comment and too much likes because I want to do
9 | this only for post that I really like the content so at the moment I only
10 | use the function follow/unfollow.
11 | - I use two files "quickstart", one for follow and one for unfollow.
12 | - I noticed that the most important thing is that the account from where I
13 | get followers has similar contents to mine in order to be sure that my
14 | content could be appreciated. After the following step, I start unfollowing
15 | the user that don't followed me back.
16 | - At the end I clean my account unfollowing all the users followed with
17 | InstaPy.
18 | """
19 |
20 | # imports
21 | from instapy import InstaPy
22 | from instapy import smart_run
23 |
24 | # login credentials
25 | insta_username = ''
26 | insta_password = ''
27 |
28 | # get an InstaPy session!
29 | # set headless_browser=True to run InstaPy in the background
30 | session = InstaPy(username=insta_username,
31 | password=insta_password,
32 | headless_browser=False)
33 |
34 | with smart_run(session):
35 | """ Activity flow """
36 | # general settings
37 | session.set_relationship_bounds(enabled=True,
38 | delimit_by_numbers=True,
39 | max_followers=4590,
40 | min_followers=45,
41 | min_following=77)
42 |
43 | session.set_dont_include(["friend1", "friend2", "friend3"])
44 | session.set_dont_like(["pizza", "#store"])
45 |
46 | # activities
47 |
48 | """ Massive Follow of users followers (I suggest to follow not less than
49 | 3500/4000 users for better results)...
50 | """
51 | session.follow_user_followers(['user1', 'user2', 'user3'], amount=800,
52 | randomize=False, interact=False)
53 |
54 | """ First step of Unfollow action - Unfollow not follower users...
55 | """
56 | session.unfollow_users(amount=500, InstapyFollowed=(True, "nonfollowers"),
57 | style="FIFO",
58 | unfollow_after=12 * 60 * 60, sleep_delay=601)
59 |
60 | """ Second step of Massive Follow...
61 | """
62 | session.follow_user_followers(['user1', 'user2', 'user3'], amount=800,
63 | randomize=False, interact=False)
64 |
65 | """ Second step of Unfollow action - Unfollow not follower users...
66 | """
67 | session.unfollow_users(amount=500, InstapyFollowed=(True, "nonfollowers"),
68 | style="FIFO",
69 | unfollow_after=12 * 60 * 60, sleep_delay=601)
70 |
71 | """ Clean all followed user - Unfollow all users followed by InstaPy...
72 | """
73 | session.unfollow_users(amount=500, InstapyFollowed=(True, "all"),
74 | style="FIFO", unfollow_after=24 * 60 * 60,
75 | sleep_delay=601)
76 |
77 | """ Joining Engagement Pods...
78 | """
79 | photo_comments = ['Nice shot! @{}',
80 | 'Awesome! @{}',
81 | 'Cool :thumbsup:',
82 | 'Just incredible :open_mouth:',
83 | 'What camera did you use @{}?',
84 | 'Love your posts @{}',
85 | 'Looks awesome @{}',
86 | 'Nice @{}',
87 | ':raised_hands: Yes!',
88 | 'I can feel your passion @{} :muscle:']
89 |
90 | session.set_do_comment(enabled = True, percentage = 95)
91 | session.set_comments(photo_comments, media = 'Photo')
92 | session.join_pods(topic='food', engagement_mode='no_comments')
93 |
94 |
--------------------------------------------------------------------------------
/quickstart_templates/playing_around_with_quota_supervisor.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @boldestfortune
3 |
4 | What does this quickstart script aim to do?
5 | - Just started playing around with Quota Supervisor, so I'm still tweaking
6 | these settings
7 | """
8 |
9 | import random
10 | from instapy import InstaPy
11 | from instapy import smart_run
12 |
13 | # get a session!
14 | session = InstaPy(username='', password='')
15 |
16 | # let's go! :>
17 | with smart_run(session):
18 | # general settings
19 | session.set_quota_supervisor(enabled=True, sleep_after=["server_calls_h"],
20 | sleepyhead=True, stochastic_flow=True,
21 | notify_me=True,
22 | peak_likes=(57, 585), peak_follows=(48, None),
23 | peak_unfollows=(35, 402),
24 | peak_server_calls=(500, None))
25 | session.set_relationship_bounds(enabled=True,
26 | potency_ratio=-1.3,
27 | delimit_by_numbers=True,
28 | max_followers=10000,
29 | max_following=15000,
30 | min_followers=75,
31 | min_following=75)
32 | session.set_do_comment(False, percentage=10)
33 | session.set_comments(['aMEIzing!', 'So much fun!!', 'Nicey!',
34 | 'Just incredible :open_mouth:',
35 | 'What camera did you use @{}?',
36 | 'Love your posts @{}',
37 | 'Looks awesome @{}',
38 | 'Getting inspired by you @{}',
39 | ':raised_hands: Yes!',
40 | 'I can feel your passion @{} :muscle:'])
41 | session.set_use_clarifai(enabled=True, api_key='')
42 | session.clarifai_check_img_for(
43 | ['nsfw', 'gay', 'hijab', 'niqab', 'religion', 'shirtless', 'fitness',
44 | 'yamaka', 'rightwing'], comment=False)
45 | session.set_dont_like(
46 | ['dick', 'squirt', 'gay', 'homo', '#fit', '#fitfam', '#fittips',
47 | '#abs', '#kids', '#children', '#child',
48 | '[nazi',
49 | 'jew', 'judaism', '[muslim', '[islam', 'bangladesh', '[hijab',
50 | '[niqab', '[farright', '[rightwing',
51 | '#conservative', 'death', 'racist'])
52 | session.set_do_follow(enabled=True, percentage=25, times=2)
53 |
54 | # like by tags activity
55 | session.set_smart_hashtags(
56 | ['interiordesign', 'artshow', 'restaurant', 'artist', 'losangeles',
57 | 'newyork', 'miami'],
58 | limit=10, sort='random', log_tags=True)
59 | session.set_dont_like(['promoter', 'nightclub'])
60 | session.set_delimit_liking(enabled=True, max=1005, min=10)
61 | session.like_by_tags(amount=random.randint(1, 15), use_smart_hashtags=True)
62 |
63 | # interact user followers activity
64 | session.set_user_interact(amount=5, randomize=True, percentage=50,
65 | media='Photo')
66 | session.set_do_follow(enabled=True, percentage=70)
67 | session.set_do_like(enabled=True, percentage=70)
68 | session.set_comments([u"👍" , 'Nice shot! @{}',
69 | 'I love your profile! @{}',
70 | 'Your feed is an inspiration :thumbsup:',
71 | 'Just incredible :open_mouth:',
72 | 'What camera did you use @{}?',
73 | 'Love your posts @{}',
74 | 'Looks awesome @{}',
75 | 'Getting inspired by you @{}',
76 | ':raised_hands: Yes!'])
77 | session.set_do_comment(enabled=True, percentage=30)
78 | session.interact_user_followers([''], amount=random.randint(1, 10),
79 | randomize=True)
80 |
81 | # unfollow activity
82 | session.set_dont_unfollow_active_users(enabled=True, posts=3)
83 | session.unfollow_users(amount=random.randint(30, 100),
84 | InstapyFollowed=(True, "all"), style="FIFO",
85 | unfollow_after=90 * 60 * 60, sleep_delay=501)
86 |
87 | """ Joining Engagement Pods...
88 | """
89 | session.join_pods(topic='sports')
90 |
--------------------------------------------------------------------------------
/quickstart_templates/target_followers_of_similar_accounts_and_influencers.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @Nuzzo235
3 |
4 | What does this quickstart script aim to do?
5 | - This script is targeting followers of similar accounts and influencers.
6 | - This is my starting point for a conservative approach: Interact with the
7 | audience of influencers in your niche with the help of 'Target-Lists' and
8 | 'randomization'.
9 |
10 | NOTES:
11 | - For the ease of use most of the relevant data is retrieved in the upper part.
12 | """
13 |
14 | import random
15 | from instapy import InstaPy
16 | from instapy import smart_run
17 |
18 | # login credentials
19 | insta_username = 'username'
20 | insta_password = 'password'
21 |
22 | # restriction data
23 | dont_likes = ['#exactmatch', '[startswith', ']endswith', 'broadmatch']
24 | ignore_users = ['user1', 'user2', 'user3']
25 |
26 | """ Prevent commenting on and unfollowing your good friends (the images will
27 | still be liked)...
28 | """
29 | friends = ['friend1', 'friend2', 'friend3']
30 |
31 | """ Prevent posts that contain...
32 | """
33 | ignore_list = []
34 |
35 | # TARGET data
36 | """ Set similar accounts and influencers from your niche to target...
37 | """
38 | targets = ['user1', 'user2', 'user3']
39 |
40 | """ Skip all business accounts, except from list given...
41 | """
42 | target_business_categories = ['category1', 'category2', 'category3']
43 |
44 | # COMMENT data
45 | comments = ['Nice shot! @{}',
46 | 'I love your profile! @{}',
47 | 'Your feed is an inspiration :thumbsup:',
48 | 'Just incredible :open_mouth:',
49 | 'What camera did you use @{}?',
50 | 'Love your posts @{}',
51 | 'Looks awesome @{}',
52 | 'Getting inspired by you @{}',
53 | ':raised_hands: Yes!',
54 | 'I can feel your passion @{} :muscle:']
55 |
56 | # get a session!
57 | session = InstaPy(username=insta_username,
58 | password=insta_password,
59 | headless_browser=True,
60 | disable_image_load=True,
61 | multi_logs=True)
62 |
63 | # let's go! :>
64 | with smart_run(session):
65 | # HEY HO LETS GO
66 | # general settings
67 | session.set_dont_include(friends)
68 | session.set_dont_like(dont_likes)
69 | session.set_ignore_if_contains(ignore_list)
70 | session.set_ignore_users(ignore_users)
71 | session.set_simulation(enabled=True)
72 | session.set_relationship_bounds(enabled=True,
73 | potency_ratio=None,
74 | delimit_by_numbers=True,
75 | max_followers=7500,
76 | max_following=3000,
77 | min_followers=25,
78 | min_following=25,
79 | min_posts=10)
80 |
81 | session.set_skip_users(skip_private=True,
82 | skip_no_profile_pic=True,
83 | skip_business=True,
84 | dont_skip_business_categories=[
85 | target_business_categories])
86 |
87 | session.set_user_interact(amount=3, randomize=True, percentage=80,
88 | media='Photo')
89 | session.set_do_like(enabled=True, percentage=90)
90 | session.set_do_comment(enabled=True, percentage=15)
91 | session.set_comments(comments, media='Photo')
92 | session.set_do_follow(enabled=True, percentage=40, times=1)
93 |
94 | # activities
95 |
96 | # FOLLOW+INTERACTION on TARGETED accounts
97 | """ Select users form a list of a predefined targets...
98 | """
99 | number = random.randint(3, 5)
100 | random_targets = targets
101 |
102 | if len(targets) <= number:
103 | random_targets = targets
104 |
105 | else:
106 | random_targets = random.sample(targets, number)
107 |
108 | """ Interact with the chosen targets...
109 | """
110 | session.follow_user_followers(random_targets,
111 | amount=random.randint(30, 60),
112 | randomize=True, sleep_delay=600,
113 | interact=True)
114 |
115 | # UNFOLLOW activity
116 | """ Unfollow nonfollowers after one day...
117 | """
118 | session.unfollow_users(amount=random.randint(75, 100),
119 | nonFollowers=True,
120 | style="FIFO",
121 | unfollow_after=24 * 60 * 60, sleep_delay=600)
122 |
123 | """ Unfollow all users followed by InstaPy after one week to keep the
124 | following-level clean...
125 | """
126 | session.unfollow_users(amount=random.randint(75, 100),
127 | allFollowing=True,
128 | style="FIFO",
129 | unfollow_after=168 * 60 * 60, sleep_delay=600)
130 |
131 | """ Joining Engagement Pods...
132 | """
133 | session.join_pods()
134 |
135 | """
136 | Have fun while optimizing for your purposes, Nuzzo
137 | """
138 |
--------------------------------------------------------------------------------
/quickstart_templates/stylish_unfollow_tips_and_like_by_tags.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @Nocturnal-2
3 |
4 | What does this quickstart script aim to do?
5 | - I do some unfollow and like by tags mostly
6 |
7 | NOTES:
8 | - I am an one month old InstaPy user, with a small following. So my numbers
9 | in settings are bit conservative.
10 | """
11 |
12 | from instapy import InstaPy
13 | from instapy import smart_run
14 |
15 | # get a session!
16 | session = InstaPy(username='', password='')
17 |
18 | # let's go! :>
19 | with smart_run(session):
20 | """ Start of parameter setting """
21 | # don't like if a post already has more than 150 likes
22 | session.set_delimit_liking(enabled=True, max=150, min=0)
23 |
24 | # don't comment if a post already has more than 4 comments
25 | session.set_delimit_commenting(enabled=True, max=4, min=0)
26 |
27 | """I used to have potency_ratio=-0.85 and max_followers=1200 for
28 | set_relationship_bounds()
29 | Having a stricter relationship bound to target only low profiles
30 | users was not very useful,
31 | as interactions/sever calls ratio was very low. I would reach the
32 | server call threshold for
33 | the day before even crossing half of the presumed safe limits for
34 | likes, follow and comments (yes,
35 | looks like quiet a lot of big(bot) managed accounts out there!!).
36 | So I relaxed it a bit to -0.50 and 2000 respectively.
37 | """
38 | session.set_relationship_bounds(enabled=True,
39 | potency_ratio=-0.50,
40 | delimit_by_numbers=True,
41 | max_followers=2000,
42 | max_following=3500,
43 | min_followers=25,
44 | min_following=25)
45 | session.set_do_comment(True, percentage=20)
46 | session.set_do_follow(enabled=True, percentage=20, times=2)
47 | session.set_comments(['Amazing!', 'Awesome!!', 'Cool!', 'Good one!',
48 | 'Really good one', 'Love this!', 'Like it!',
49 | 'Beautiful!', 'Great!', 'Nice one'])
50 | session.set_sleep_reduce(200)
51 |
52 | """ Get the list of non-followers
53 | I duplicated unfollow_users() to see a list of non-followers which I
54 | run once in a while when I time
55 | to review the list
56 | """
57 | # session.just_get_nonfollowers()
58 |
59 | # my account is small at the moment, so I keep smaller upper threshold
60 | session.set_quota_supervisor(enabled=True,
61 | sleep_after=["likes", "comments_d", "follows",
62 | "unfollows", "server_calls_h"],
63 | sleepyhead=True, stochastic_flow=True,
64 | notify_me=True,
65 | peak_likes=(100, 700),
66 | peak_comments=(25, 200),
67 | peak_follows=(48, 125),
68 | peak_unfollows=(35, 400),
69 | peak_server_calls=(None, 3000))
70 | """ End of parameter setting """
71 |
72 | """ Actions start here """
73 | # Unfollow users
74 | """ Users who were followed by InstaPy, but not have followed back will
75 | be removed in
76 | One week (168 * 60 * 60)
77 | Yes, I give a liberal one week time to follow [back] :)
78 | """
79 | session.unfollow_users(amount=25, InstapyFollowed=(True, "nonfollowers"),
80 | style="RANDOM",
81 | unfollow_after=168 * 60 * 60,
82 | sleep_delay=600)
83 |
84 | # Remove specific users immediately
85 | """ I use InstaPy only for my personal account, I sometimes use custom
86 | list to remove users who fill up my feed
87 | with annoying photos
88 | """
89 | # custom_list = ["sexy.girls.pagee", "browneyedbitch97"]
90 | #
91 | # session.unfollow_users(amount=20, customList=(True, custom_list,
92 | # "all"), style="RANDOM",
93 | # unfollow_after=1 * 60 * 60, sleep_delay=200)
94 |
95 | # Like by tags
96 | """ I mostly use like by tags. I used to use a small list of targeted
97 | tags with a big 'amount' like 300
98 | But that resulted in lots of "insufficient links" messages. So I
99 | started using a huge list of tags with
100 | 'amount' set to something small like 50. Probably this is not the
101 | best way to deal with "insufficient links"
102 | message. But I feel it is a quick work around.
103 | """
104 |
105 | session.like_by_tags(['tag1', 'tag2', 'tag3', 'tag4'], amount=300)
106 |
107 | """ Joining Engagement Pods...
108 | """
109 | session.join_pods(topic='fashion')
110 |
111 | """
112 | -- REVIEWS --
113 |
114 | @uluQulu:
115 | - @Nocturnal-2, your template looks stylish, thanks for preparing it.
116 |
117 | @nocturnal-2:
118 | - I think it is good opportunity to educate and get educated [using templates of other people] :) ...
119 |
120 | """
121 |
--------------------------------------------------------------------------------
/quickstart_templates/follow_unfollow_and_send_telegram_msg.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @Mehran
3 |
4 | What does this quickstart script aim to do?
5 | - My quickstart is just for follow/unfollow users.
6 |
7 | NOTES:
8 | - It uses schedulers to trigger activities in chosen hours and also, sends me
9 | messages through Telegram API.
10 | """
11 |
12 | # -*- coding: UTF-8 -*-
13 | import time
14 | from datetime import datetime
15 | import schedule
16 | import traceback
17 | import requests
18 |
19 | from instapy import InstaPy
20 | from instapy import smart_run
21 |
22 | insta_username = ''
23 | insta_password = ''
24 |
25 |
26 | def get_session():
27 | session = InstaPy(username=insta_username,
28 | password=insta_password,
29 | headless_browser=True,
30 | nogui=True,
31 | multi_logs=False)
32 |
33 | return session
34 |
35 |
36 | def follow():
37 | # Send notification to my Telegram
38 | requests.get(
39 | "https://api.telegram.org/botINSERT_CHATID_HERE>&text='InstaPy Follower Started @ {}'"
40 | .format(datetime.now().strftime("%H:%M:%S")))
41 |
42 | # get a session!
43 | session = get_session()
44 |
45 | # let's go!
46 | with smart_run(session):
47 | counter = 0
48 |
49 | while counter < 5:
50 | counter += 1
51 |
52 | try:
53 | # settings
54 | session.set_relationship_bounds(enabled=True,
55 | potency_ratio=1.21)
56 |
57 | # activity
58 | session.follow_by_tags(['tehran', 'تهران'], amount=5)
59 | session.follow_user_followers(['donya', 'arat.gym'], amount=5,
60 | randomize=False)
61 | session.follow_by_tags(
62 | ['کادو', 'سالن', 'فروشگاه', 'زنانه', 'فشن', 'میکاپ',
63 | 'پوست', 'زیبا'], amount=10)
64 | session.follow_by_tags(
65 | ['لاغری', 'خرید_آنلاین', 'کافی_شاپ', 'گل'], amount=5)
66 | session.unfollow_users(amount=25, allFollowing=True,
67 | style="LIFO",
68 | unfollow_after=3 * 60 * 60,
69 | sleep_delay=450)
70 |
71 | except Exception:
72 | print(traceback.format_exc())
73 |
74 | # Send notification to my Telegram
75 | requests.get(
76 | "https://api.telegram.org/botINSERT_CHATID_HERE>&text='InstaPy Follower Stopped @ {}'"
77 | .format(datetime.now().strftime("%H:%M:%S")))
78 |
79 |
80 | def unfollow():
81 | requests.get(
82 | "https://api.telegram.org/botINSERT_CHATID_HERE>/sendMessage?chat_id=*****&text"
83 | "='InstaPy Unfollower Started @ {}'"
84 | .format(datetime.now().strftime("%H:%M:%S")))
85 |
86 | # get a session!
87 | session = get_session()
88 |
89 | # let's go!
90 | with smart_run(session):
91 | try:
92 | # settings
93 | session.set_relationship_bounds(enabled=False, potency_ratio=1.21)
94 |
95 | # actions
96 | session.unfollow_users(amount=600, allFollowing=True,
97 | style="RANDOM", sleep_delay=450)
98 |
99 | except Exception:
100 | print(traceback.format_exc())
101 |
102 | requests.get(
103 | "https://api.telegram.org/botINSERT_CHATID_HERE>&text"
104 | "='InstaPy Unfollower Stopped @ {}'"
105 | .format(datetime.now().strftime("%H:%M:%S")))
106 |
107 |
108 | def xunfollow():
109 | requests.get(
110 | "https://api.telegram.org/botINSERT_CHATID_HERE>&text"
111 | "='InstaPy Unfollower WEDNESDAY Started @ {}'"
112 | .format(datetime.now().strftime("%H:%M:%S")))
113 |
114 | # get a session!
115 | session = get_session()
116 |
117 | # let's go!
118 | with smart_run(session):
119 | try:
120 | # settings
121 | session.set_relationship_bounds(enabled=False, potency_ratio=1.21)
122 |
123 | # actions
124 | session.unfollow_users(amount=1000, allFollowing=True,
125 | style="RANDOM", unfollow_after=3 * 60 * 60,
126 | sleep_delay=450)
127 |
128 | except Exception:
129 | print(traceback.format_exc())
130 |
131 | requests.get(
132 | "https://api.telegram.org/botINSERT_CHATID_HERE>&text"
133 | "='InstaPy Unfollower WEDNESDAY Stopped @ {}'"
134 | .format(datetime.now().strftime("%H:%M:%S")))
135 |
136 |
137 | # schedulers
138 | schedule.every().day.at("09:30").do(follow)
139 | schedule.every().day.at("13:30").do(follow)
140 | schedule.every().day.at("17:30").do(follow)
141 |
142 | schedule.every().day.at("00:05").do(unfollow)
143 |
144 | schedule.every().wednesday.at("03:00").do(xunfollow)
145 |
146 | while True:
147 | schedule.run_pending()
148 | time.sleep(1)
149 |
--------------------------------------------------------------------------------
/quickstart_templates/good_usage_of_blacklist.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @jeremycjang
3 |
4 | What does this quickstart script aim to do?
5 | - Here's the configuration I use the most.
6 |
7 | NOTES:
8 | - Read the incredibly amazing advices & ideas from my experience at the end
9 | of this file :>
10 | """
11 |
12 | from instapy import InstaPy
13 | from instapy import smart_run
14 |
15 | insta_username = 'username'
16 | insta_password = 'password'
17 |
18 | # get a session!
19 | session = InstaPy(username=insta_username,
20 | password=insta_password,
21 | use_firefox=True,
22 | page_delay=20,
23 | bypass_suspicious_attempt=False,
24 | nogui=False,
25 | multi_logs=True)
26 |
27 | # let's go! :>
28 | with smart_run(session):
29 | # settings
30 | """ I don't use relationship bounds, but messed with it before and had
31 | some arbitrary numbers here
32 | """
33 | session.set_relationship_bounds(enabled=False,
34 | potency_ratio=-1.21,
35 | delimit_by_numbers=True,
36 | max_followers=99999999,
37 | max_following=5000,
38 | min_followers=70,
39 | min_following=10)
40 | """ Create a blacklist campaign to avoid bot interacting with users
41 | again. I never turn this off
42 | """
43 | session.set_blacklist(enabled=True, campaign='blacklist')
44 | session.set_do_like(enabled=True, percentage=100)
45 | session.set_do_comment(enabled=True, percentage=100)
46 | session.set_comments([':thumbsup:', ':raising_hands:'
47 | 'you r such a special diamond :thumbsup:',
48 | 'Just incredible :open_mouth:',
49 | 'YOU R THE BO$$ @{}?',
50 | 'Love your posts @{}',
51 | 'Looks awesome @{}',
52 | 'Getting inspired by you @{}',
53 | ':raised_hands: Yes!',
54 | 'I keep waiting for your posts @{} :thumbsup: :muscle:'],
55 | media='Photo')
56 | session.set_comments(
57 | ['comment4', ':smiling_face_with_sunglasses: :thumbsup:', ':comment6'],
58 | media='Video')
59 | # session.set_dont_include(['friend1', 'friend2', 'friend3'])
60 | session.set_dont_like(['#naked', '#sex', '#fight'])
61 | session.set_user_interact(amount=1, randomize=False, percentage=50)
62 | session.set_simulation(enabled=True)
63 |
64 | # activity
65 |
66 | """ First follow user followers leaves comments on these user's posts...
67 | """
68 | session.follow_user_followers(['user1', 'user2', 'user3'], amount=125,
69 | randomize=False, interact=True,
70 | sleep_delay=600)
71 |
72 | """ Second follow user follows doesn't comment on users' posts...
73 | """
74 | session.follow_user_followers(['user4', 'user5'], amount=50,
75 | randomize=False, interact=False,
76 | sleep_delay=600)
77 |
78 | """ Unfollow amount intentionally set higher than follow amount to catch
79 | accounts that were not unfollowed last run.
80 | Blacklist set to false as this seems to allow more users to get
81 | unfollowed for whatever reason.
82 | """
83 | session.set_blacklist(enabled=False, campaign='blacklist')
84 | session.unfollow_users(amount=1000, InstapyFollowed=(True, "all"),
85 | style="FIFO", unfollow_after=None,
86 | sleep_delay=600)
87 |
88 | """ Joining Engagement Pods...
89 | """
90 | session.join_pods(topic='travel', engagement_mode='no_comments')
91 |
92 | """
93 | EXTRA NOTES:
94 |
95 | 1-) A blacklist is used and never turned off so as to never follow the same
96 | user twice (unless their username is changed)
97 |
98 | 2-) The program is set to follow 475 people because this is the largest
99 | amount I've found so far that can be followed, commented on and unfollowed
100 | successfully within 24 hours. This can be customized of course, but please
101 | let me know if anyone's found a larger amount that can be cycled in 24 hours~
102 |
103 | 3-) Running this program every day, the program never actually follows a
104 | full 475 people because it doesn't grab enough links or grabs the links of
105 | people that have been followed already.
106 |
107 | 4-) I still have never observed the `media` parameter within `set comments`
108 | do anything, so a random comment from the 6 gets picked regardless of the
109 | media type
110 |
111 | 5-) For unknown reasons, the program will always prematurely end the
112 | unfollow portion without unfollowing everyone. More on this later
113 |
114 | 6-) I use two ```follow_user_followers``` sessions because I believe the
115 | comments I use are only well-received by the followers of users in the first
116 | ```follow_user_followers``` action.
117 |
118 | 7-) Linux PRO-tip: This is a really basic command line syntax that I learned
119 | yesterday, but less technical people may not have know about it as well.
120 | using `&&` in terminal, you can chain InstaPy programs! if you send:
121 |
122 | ```
123 | python InstaPyprogram1 && python InstaPyprogram2
124 | ```
125 |
126 | The shell will interpret it as "Run the InstaPyprogram1, then once it
127 | successfully completes immediately run InstaPyprogram2".
128 | Knowing this, my workaround for the premature unfollow actions ending is to
129 | chain my template with another program that only has the unfollow code.
130 | There's no limit to how many programs you can chain with `&&`, so you can use your imagination on what can be accomplished :)
131 |
132 |
133 | Hope this helps! Open to any feedback and improvements anyone can suggest ^.^
134 | """
135 |
--------------------------------------------------------------------------------
/quickstart_templates/good_commenting_strategy_and_new_qs_system.py:
--------------------------------------------------------------------------------
1 | """
2 | This template is written by @the-unknown
3 |
4 | What does this quickstart script aim to do?
5 | - This is my template which includes the new QS system.
6 | It includes a randomizer for my hashtags... with every run, it selects 10
7 | random hashtags from the list.
8 |
9 | NOTES:
10 | - I am using the bot headless on my vServer and proxy into a Raspberry PI I
11 | have at home, to always use my home IP to connect to Instagram.
12 | In my comments, I always ask for feedback, use more than 4 words and
13 | always have emojis.
14 | My comments work very well, as I get a lot of feedback to my posts and
15 | profile visits since I use this tactic.
16 |
17 | As I target mainly active accounts, I use two unfollow methods.
18 | The first will unfollow everyone who did not follow back within 12h.
19 | The second one will unfollow the followers within 24h.
20 | """
21 |
22 | # !/usr/bin/python2.7
23 | import random
24 | from instapy import InstaPy
25 | from instapy import smart_run
26 |
27 | # get a session!
28 | session = InstaPy(username='xxxx', password='xxxx', headless_browser=True)
29 |
30 | # let's go! :>
31 | with smart_run(session):
32 | hashtags = ['travelcouples', 'travelcommunity', 'passionpassport',
33 | 'travelingcouple',
34 | 'backpackerlife', 'travelguide', 'travelbloggers',
35 | 'travelblog', 'letsgoeverywhere',
36 | 'travelislife', 'stayandwander', 'beautifuldestinations',
37 | 'moodygrams',
38 | 'ourplanetdaily', 'travelyoga', 'travelgram', 'sunsetporn',
39 | 'lonelyplanet',
40 | 'igtravel', 'instapassport', 'travelling', 'instatraveling',
41 | 'travelingram',
42 | 'mytravelgram', 'skyporn', 'traveler', 'sunrise',
43 | 'sunsetlovers', 'travelblog',
44 | 'sunset_pics', 'visiting', 'ilovetravel',
45 | 'photographyoftheday', 'sunsetphotography',
46 | 'explorenature', 'landscapeporn', 'exploring_shotz',
47 | 'landscapehunter', 'colors_of_day',
48 | 'earthfocus', 'ig_shotz', 'ig_nature', 'discoverearth',
49 | 'thegreatoutdoors']
50 | random.shuffle(hashtags)
51 | my_hashtags = hashtags[:10]
52 |
53 | # general settings
54 | session.set_dont_like(['sad', 'rain', 'depression'])
55 | session.set_do_follow(enabled=True, percentage=80, times=1)
56 | session.set_do_comment(enabled=True, percentage=80)
57 | session.set_comments([
58 | u'What an amazing shot! :heart_eyes: What do '
59 | u'you think of my recent shot?',
60 | u'What an amazing shot! :heart_eyes: I think '
61 | u'you might also like mine. :wink:',
62 | u'Wonderful!! :heart_eyes: Would be awesome if '
63 | u'you would checkout my photos as well!',
64 | u'Wonderful!! :heart_eyes: I would be honored '
65 | u'if you would checkout my images and tell me '
66 | u'what you think. :wink:',
67 | u'This is awesome!! :heart_eyes: Any feedback '
68 | u'for my photos? :wink:',
69 | u'This is awesome!! :heart_eyes: maybe you '
70 | u'like my photos, too? :wink:',
71 | u'I really like the way you captured this. I '
72 | u'bet you like my photos, too :wink:',
73 | u'I really like the way you captured this. If '
74 | u'you have time, check out my photos, too. I '
75 | u'bet you will like them. :wink:',
76 | u'Great capture!! :smiley: Any feedback for my '
77 | u'recent shot? :wink:',
78 | u'Great capture!! :smiley: :thumbsup: What do '
79 | u'you think of my recent photo?'],
80 | media='Photo')
81 | session.set_do_like(True, percentage=70)
82 | session.set_delimit_liking(enabled=True, max_likes=100, min_likes=0)
83 | session.set_delimit_commenting(enabled=True, max_comments=20, min_comments=0)
84 | session.set_relationship_bounds(enabled=True,
85 | potency_ratio=None,
86 | delimit_by_numbers=True,
87 | max_followers=3000,
88 | max_following=2000,
89 | min_followers=50,
90 | min_following=50)
91 |
92 | session.set_quota_supervisor(enabled=True,
93 | sleep_after=["likes", "follows"],
94 | sleepyhead=True, stochastic_flow=True,
95 | notify_me=True,
96 | peak_likes_hourly=200,
97 | peak_likes_daily=585,
98 | peak_comments_hourly=80,
99 | peak_comments_daily=182,
100 | peak_follows_hourly=48,
101 | peak_follows_daily=None,
102 | peak_unfollows_hourly=35,
103 | peak_unfollows_daily=402,
104 | peak_server_calls_hourly=None,
105 | peak_server_calls_daily=4700)
106 |
107 | session.set_user_interact(amount=10, randomize=True, percentage=80)
108 |
109 | # activity
110 | session.like_by_tags(my_hashtags, amount=90, media=None)
111 | session.unfollow_users(amount=500, instapy_followed_enabled=True, instapy_followed_param="nonfollowers",
112 | style="FIFO",
113 | unfollow_after=12 * 60 * 60, sleep_delay=501)
114 | session.unfollow_users(amount=500, instapy_followed_enabled=True, instapy_followed_param="all",
115 | style="FIFO", unfollow_after=24 * 60 * 60,
116 | sleep_delay=501)
117 |
118 | """ Joining Engagement Pods...
119 | """
120 | session.join_pods(topic='sports', engagement_mode='no_comments')
121 |
--------------------------------------------------------------------------------
/quickstart_templates/friends_last_post_likes_and_interact_with_user_based_on_hashtahs.py:
--------------------------------------------------------------------------------
1 | """
2 | Based in @jeremycjang and @boldestfortune
3 | This config is meant to run with docker-compose inside a folder call z_{user}
4 | (Added to gitignore)
5 | Folder content:
6 | - data.yaml
7 | - docker-compose.yaml
8 | - start.py (Containing this script)
9 |
10 | Content files examples (comments between parenthesis)
11 |
12 | ::data.yaml::
13 | username: user # (instagram user)
14 | password: password # (instagram password)
15 | friends_interaction: True # (if True will like friendlist posts,
16 | False will avoid create friends session)
17 | do_comments: True # (if True will comment on user interaction)
18 | do_follow: True # (if True will follow on user interaction)
19 | user_interact: True # (if True will interact with user posts)
20 | do_unfollow: True # (if True will execution unfollow)
21 | friendlist: ['friend1', 'friend2', 'friend3', 'friend4']
22 | hashtags: ['interest1', 'interest2', 'interest3', 'interest4']
23 |
24 |
25 | ::docker-compose.yaml::
26 | version: '3'
27 | services:
28 | web:
29 | command: ["./wait-for-selenium.sh", "http://selenium:4444/wd/hub", "--",
30 | "python", "start.py"]
31 | environment:
32 | - PYTHONUNBUFFERED=0
33 | build:
34 | context: ../
35 | dockerfile: docker_conf/python/Dockerfile
36 | depends_on:
37 | - selenium
38 | volumes:
39 | - ./start.py:/code/start.py
40 | - ./data.yaml:/code/data.yaml
41 | - ./logs:/code/logs
42 | selenium:
43 | image: selenium/standalone-chrome
44 | shm_size: 128M
45 |
46 | ::HOW TO RUN::
47 | Inside z_{user} directory:
48 | run in background:
49 | docker-compose down && docker-compose up -d --build
50 | run with log in terminal:
51 | docker-compose down && docker-compose up -d --build && docker-compose
52 | logs -f
53 | """
54 |
55 | import yaml
56 | import os
57 | import random
58 | from instapy import InstaPy
59 | from instapy import smart_run
60 |
61 | """
62 | Loading data
63 | """
64 | current_path = os.path.abspath(os.path.dirname(__file__))
65 | data = yaml.safe_load(open("%s/data.yaml" % (current_path)))
66 |
67 | insta_username = data['username']
68 | insta_password = data['password']
69 | friendlist = data['friendlist']
70 | hashtags = data['hashtags']
71 |
72 | """
73 | Generating 5 comments built with random selection and amount of emojis from
74 | characters
75 | """
76 | comments = ['Nice shot! @{}',
77 | 'I love your profile! @{}',
78 | 'Wow :thumbsup:',
79 | 'Just incredible :open_mouth:',
80 | 'Amazing @{}?',
81 | 'Love your posts @{}',
82 | 'Looks awesome @{}',
83 | 'Getting inspired by you @{}',
84 | ':raised_hands: Yes!',
85 | 'I can feel your passion @{} :muscle:']
86 | characters = [u'😮', u'🌱', u'🍕', u'🚀', u'💬', u'💅', u'🦑', u'🌻', u'⚡️',
87 | u'🌈', u'🎉', u'😻']
88 | for comment in range(5):
89 | comment = ''.join(random.sample(characters, random.randint(3, 6)))
90 | comments.append(comment)
91 |
92 | """
93 | Like last two posts from friendlists
94 | """
95 | if data['friends_interaction']:
96 | friends = InstaPy(username=insta_username,
97 | password=insta_password,
98 | selenium_local_session=False,
99 | disable_image_load=True,
100 | multi_logs=False)
101 | friends.set_selenium_remote_session(
102 | selenium_url='http://selenium:4444/wd/hub')
103 | with smart_run(friends):
104 | print(u'💞 Showing friends some love 💖')
105 | friends.set_relationship_bounds(enabled=False)
106 | friends.set_skip_users(skip_private=False)
107 | friends.set_do_like(True,
108 | percentage=100)
109 | friends.interact_by_users(friendlist,
110 | amount=2,
111 | randomize=False)
112 |
113 | """
114 | Collecting followers
115 | """
116 | bot = InstaPy(username=insta_username,
117 | password=insta_password,
118 | selenium_local_session=False,
119 | disable_image_load=True,
120 | multi_logs=False)
121 | bot.set_selenium_remote_session(selenium_url='http://selenium:4444/wd/hub')
122 | with smart_run(bot):
123 | """
124 | Setting quota supervisor
125 | """
126 | bot.set_quota_supervisor(enabled=True,
127 | sleep_after=["server_calls_h"],
128 | sleepyhead=True,
129 | stochastic_flow=True,
130 | notify_me=True,
131 | peak_likes_hourly=106,
132 | peak_likes_daily=585,
133 | peak_follows_hourly=48,
134 | peak_follows_daily=None,
135 | peak_unfollows_hourly=35,
136 | peak_unfollows_daily=403,
137 | peak_server_calls_hourly=None,
138 | peak_server_calls_daily=4700)
139 | """
140 | Setting smooth behavior
141 | """
142 | bot.set_simulation(enabled=True,
143 | percentage=66)
144 | bot.set_action_delays(enabled=True,
145 | like=3,
146 | comment=5,
147 | follow=4.17,
148 | unfollow=28)
149 | """
150 | Setting user bounderies
151 | """
152 | bot.set_dont_include(friendlist)
153 | bot.set_blacklist(enabled=True,
154 | campaign='blacklist')
155 | bot.set_relationship_bounds(enabled=True,
156 | potency_ratio=-1.21,
157 | delimit_by_numbers=True,
158 | max_followers=99999999,
159 | max_following=5000,
160 | min_followers=2000,
161 | min_following=10)
162 | """
163 | Filters
164 | """
165 | bot.set_dont_like(
166 | ['dick', 'squirt', 'gay', 'homo', '#fit', '#fitfam', '#fittips',
167 | '#abs', '#kids', '#children', '#child',
168 | '[nazi', 'promoter'
169 | 'jew', 'judaism', '[muslim', '[islam', 'bangladesh',
170 | '[hijab', '[niqab', '[farright', '[rightwing',
171 | '#conservative', 'death', 'racist'])
172 |
173 | """
174 | Interaction settings
175 | """
176 | bot.set_do_like(enabled=True,
177 | percentage=100)
178 | bot.set_delimit_liking(enabled=True,
179 | min_likes=40)
180 | if data['do_comments']:
181 | bot.set_comments(comments)
182 | bot.set_do_comment(enabled=True,
183 | percentage=80)
184 | if data['do_follow']:
185 | bot.set_do_follow(enabled=True,
186 | percentage=60)
187 | if data['user_interact']:
188 | bot.set_user_interact(amount=1,
189 | randomize=False,
190 | percentage=30)
191 |
192 | """
193 | Interact
194 | """
195 | print(u'⛰ ⛏')
196 | bot.like_by_tags(hashtags,
197 | amount=10,
198 | interact=True)
199 |
200 | """
201 | Unfollow non-followers after 3 days and all followed by InstaPy from a
202 | week ago.
203 | """
204 | if data['do_unfollow']:
205 | bot.set_blacklist(enabled=False,
206 | campaign='blacklist')
207 | bot.unfollow_users(amount=random.randint(75, 100),
208 | InstapyFollowed=(True, "nonfollowers"),
209 | style="FIFO",
210 | unfollow_after=72 * 60 * 60,
211 | sleep_delay=600)
212 | bot.unfollow_users(amount=1000,
213 | InstapyFollowed=(True, "all"),
214 | style="FIFO",
215 | unfollow_after=168 * 60 * 60,
216 | sleep_delay=600)
217 |
218 | """ Joining Engagement Pods...
219 | """
220 | bot.join_pods(topic='food', engagement_mode='no_comments')
221 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc. {http://fsf.org/}
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see {http://www.gnu.org/licenses/}.
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | PTAM-GPL Copyright (C) 2013 Oxford-PTAM
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | {http://www.gnu.org/licenses/}.
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | {http://www.gnu.org/philosophy/why-not-lgpl.html}.
675 |
--------------------------------------------------------------------------------