SkillAgentSearch skills...

Instabot.py

Instagram bot. It works without instagram api, need only login and password. Write on python. Made by LevPasha

Install / Use

/learn @Exaniity/Instabot.py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

InstaBot

InstaBot v 1.1.0

If you want to join the instabot.py team or have something to say - <a href="https://github.com/LevPasha">write to me</a>.

Works without the new Instagram [api][1](the new review process) Username and password stored locally. Written in Python!

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=7BMM6JGE73322&lc=US&item_name=GitHub%20donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" title="Support project"><img src="https://img.shields.io/badge/Support%20project-paypal-brightgreen.svg"></a> <a href="https://github.com/LevPasha/Instagram-bot-cs" title="Instagram C# bot"><img src="https://img.shields.io/badge/C%23%20InstaBot-v1.0-blue.svg"></a> <a href="https://github.com/LevPasha/Instagram-API-python" title="python Instagram API"><img src="https://img.shields.io/badge/python%20InstaAPI-v%20b0.0.1-orange.svg"></a> <a href="https://t.me/joinchat/AAAAAEG_8hv3PIJnmq1VVg" title="Chat on Telegram"><img src="https://img.shields.io/badge/chat%20on-Telegram-brightgreen.svg"></a>

Requirements

Python2.7 minimum A working Instagram account (instabot.py file must be in UTF-8 encoding if you use Python 3, or ASCII in Python 2 ([PEP][3])!)

How to install and run:

  1. Download and install Python to your computer.

  2. To install the project's dependencies, run command pip install -r requirements.txt (specify pip2 or pip3 if you have multiple versions of Python installed)

  3. Download ZIP and extract

  4. Modify example.py to your pleasing

  5. Run program python3 example.py or python example.py on Mac, Linux or Windows

Usage

Example of usage:

For example, see example.py. Just change the login and password information with your own, then run example.py and the bot will start doing it's magic!

1) Login:

Login automatic, as followed, by creating the InstaBot class element:

bot = InstaBot('login', 'password',
                like_per_day=1000,
                media_max_like=0,
                media_min_like=0,
                follow_per_day=0,
                follow_time=5*60*60,
                unfollow_per_day=0,
                comments_per_day=0,
                comment_list=[["this", "the", "your"],
                              ["photo", "picture", "pic", "shot", "snapshot"],
                              ["is", "looks", "feels", "is really"],
                              ["great", "super", "good", "very good", "good",
                               "wow", "WOW", "cool", "GREAT","magnificent",
                               "magical", "very cool", "stylish", "beautiful",
                               "so beautiful", "so stylish",
                               "so professional","lovely", "so lovely",
                               "very lovely", "glorious","so glorious",
                               "very glorious", "adorable", "excellent",
                               "amazing"], [".", "..", "...", "!","!!",
                                            "!!!"]],
                tag_list=['cat', 'car', 'dog'],
                tag_blacklist=['rain', 'thunderstorm'],
                user_blacklist={'hellokitty':'', 'hellokitty3':''},
                max_like_for_one_tag = 5,
                unfollow_break_min = 15,
                unfollow_break_max = 30,
                log_mod = 0,
                proxy='')

| Parameter | Type| Description | Default value | Example value | |:--------------------:|:---:|:----------------------------------------------------:|:--------------------------------:|:-----------------------------------------------:| | login | str | your instagram username | | python_god | | password | str | your instagram password | | python_god_password | | like_per_day | int | how many likes the bot does in 1 day | 1000 | 500 | | media_max_like | int | don't like if media has more than ... likes | 0 | 100 | | media_min_like | int | don't like if media has less than ... likes | 0 | 5 | | follow_per_day | int | how many users to follow in 1 day | 0 | 100 | | follow_time | int | how many times passes before the bot unfollows a followed user (sec) | 5 * 60 * 60 | 60 * 60 | | unfollow_per_day | int | how many user unfollows the bot does in day | 0 | 100 | | comments_per_day | int | how many comments the bot writes in a day | 0 | 50 | | comment_list | list| list of list of words, each of which will be used to generate comment | [["this", "the", "your"], ["photo", "picture", "pic", "shot", "snapshot"], ["is", "looks", "feels", "is really"], ["great", "super", "good", "very good", "good","wow", "WOW", "cool", "GREAT","magnificent","magical", "very cool", "stylish", "beautiful","so beautiful", "so stylish","so professional","lovely", "so lovely","very lovely", "glorious","so glorious","very glorious", "adorable", "excellent","amazing"], [".", "..", "...", "!","!!","!!!"]] | [["this", "the", "your"], ["photo", "picture", "pic", "shot", "snapshot"], ["is", "looks", "feels", "is really"], ["great", "super", "good", "very good", "good","wow", "WOW", "cool", "GREAT","magnificent","magical", "very cool", "stylish", "beautiful","so beautiful", "so stylish","so professional","lovely", "so lovely","very lovely", "glorious","so glorious","very glorious", "adorable", "excellent","amazing"], [".", "..", "...", "!","!!","!!!"]] | | tag_list | list| list of tag the bot uses | ['cat', 'car', 'dog'] | ['moto', 'girl', 'python'] | | tag_blacklist | list| list of tags the bot refuses to like | [] | ['rain', 'thunderstorm'] | | user_blacklist | dict| don't like posts from certain users | {} | {'hellokitty':'', 'hellokitty3':''} | | max_like_for_one_tag | int | bot get 21 media from one tag, how many use by row | 5 | 10 | | unfollow_break_min | int | Minimum seconds for unfollow break pause | 15 | 30 | | unfollow_break_max | int | Maximum seconds for unfollow break pause | 30 | 60 | | log_mod | int | logging mod | 0 | 0 log to console, 1 log to file, 2 no log. | | proxy | string | Access instagram through a proxy server | | Without authentication: proxy:port, example: 10.10.1.10:3128, with authentication: user:password@proxy:port, example: user:password@10.10.1.10:3128 |

2) Set likes and unlike:

How many likes set bot in one day. The default value is 1000 likes per 24 hours. If you want to do more than 1000 likes in a day - Instagram can ban you. Usually, this bot is used 24/7 and it's default setup to distribute 1000 likes in day evenly. If you want more likes in one moment, set this parameter to 5000 or 10000 or more. Formula: set like with delay = (24 hour * 60 minute * 60 second / like_per_day)

Be careful, don't set more than 1000 like in a day or you can be banned! Be warned!!
like_per_day=1000

Don't like media (photo or video) if it has more than media_max_like likes. media_max_like = 0 will ignore this property. If media have too many likes - your like have not feedback. Don't like media (photo or video) if it have less than media_min_like likes. media_min_like = 0 will ignore this property.

media_max_like=10
media_min_like=0

Tag list to like.

tag_list = ['cat', 'car', 'dog']

List of list of words, each of which will be used to generate comment. For example: "This shot feels wow!"

comment_list = [["this", "the", "your"], ["photo", "picture", "pic", "shot",
               "snapshot"], ["is", "looks", "feels", "is really"], ["great",
               "super", "good", "very good", "good","wow", "WOW", "cool",
               "GREAT","magnificent","magical", "very cool", "stylish",
               "beautiful","so beautiful", "so stylish","so professional",
               "lovely", "so lovely","very lovely", "glorious","so glorious",
               "very glorious", "adorable", "excellent","amazing"],
               [".", "..", "...", "!","!!","!!!"]]

If you don't want to generate comment, just random pick from list use:

comment_list = [["WOW", "Amazing", "Cool", "So wonderful"]]

Like 1 to max_like_for_one_tag times by row.

max_like_for_one_tag=5

You can like one tag:

bot.get_media_id_by_tag('dog')

Like 4 times:

bot.like_all_exist_media(4)

Or you can choose auto_mod (like all tags from setting by loop):

bot.auto_mod()

For unlike:

bot.unlike('media_id')

3) Set comments:

bot.comment('media_i
View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks9

Languages

Python

Security Score

55/100

Audited on Jul 7, 2024

No findings