Giter Club home page Giter Club logo

instagram_bot's Introduction

Intelligent Instagram Bot

Automatically likes posts in a given list of tags and follows users, maintaining a maximum given number of followed users.

The bot will search through hashtag feeds and targetted users follower lists to find potential targets. It will predict followback confidence for each potential target, and prioritise following and liking those it predicts to be most likely to follow back (aiming to maximise 1-day followback rate).

A sub-directory should be made in the same directory as instabot.py. This should contain a YAML settings.yml file, as shown in the example directory. The bot's model data, it's sliding windows (to track likes/follows/unfollows done) and it's queue of followed users will be stored here.

For those interested, historical follower/following counts are recorded in <directory>/data/hist_data/.

Install requirements

pip3 install -r requirements.txt

Usage

python3 instabot.py searches for settings.yml in current directory, and creates and populates a username directory with data for the bot.

python3 instabot.py <directory> allows you to specify the directory instabot will search for settings.yml in and use for data.

instagram_bot's People

Contributors

acbraith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

instagram_bot's Issues

TypeError: 'int' object is not subscriptable

Traceback (most recent call last):
File "instabot.py", line 728, in
bot = InstaBot(directory)
File "instabot.py", line 234, in init
self.user_id = user_info['user']['pk']
TypeError: 'int' object is not subscriptable

Might need to fix up the way the objects are called in that last line.

WARNING get_followback_confidence, model not fitted

2018-03-13 03:10:29,387 DEBUG send_request; http 200
2018-03-13 03:10:29,388 INFO find_targets: get_followback_confidence
2018-03-13 03:10:29,388 WARNING get_followback_confidence, model not fitted
2018-03-13 03:10:29,404 INFO find_targets: valid_target
2018-03-13 03:10:29,460 DEBUG send_request; Reguest: userFriendship

I created a new IG acc and tried this. It works good. The only flaw is that the Machine Learning part seems to be broken for me.

Targets Queue:
(' Total Len:', 1200)
(' Top-10 Max-Med-Min:', ['1.00', '1.00', '1.00'])

I am running it on Win10 (using python 2.7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.