Code Monkey home page Code Monkey logo

auto-instagram-posting-bot's Introduction

Auto Instagram Posting Bot (AIPB)

AIPB automates your Instagram posts by taking images from sites like 9gag or other Instagram accounts and posting it onto your page.

⭐️ Star this project on GitHub — it helps!

Features

  • Adjustable interval between posts
  • Original captions/title as post captions
  • Multiple 9gag categories
  • Log into Instagram with Facebook credentials
  • Duplicate post prevention
  • Get Instagram users past photos and add to queue
  • Max post limit
  • Listens for new images
  • Automatically resizes images to fit Instagram
  • Simulates real clicking

Installation

Clone or download this repo: git clone https://github.com/HenryAlbu/auto-Instagram-posting-bot.git

Go to the project directory cd auto-Instagram-posting-bot

Install the requirements: pip install -r requirements.txt

This project is Selenium based and requires a chromedriver. I have already included one in the project files for Chrome 81/Windows. If you want to get a newer version or for a different OS, download it here and drag and drop it into the directory.

Running

Just run: python app.py

File structure

Files/Folders Description
app.py The main file for the project contains the UI and connections calls the other files. (Run this file)
insta.py Contains the functions and steps that sign you into Instagram. Also contains the Selenium driver options
ninegag.py Contains the functions to download and queue up 9gag posts
settings.py Contains the global variables
insta_scraper.py Contains the functions to download and queue up scrapped Instagram posts from selected user
filesCheck.txt (created on initial run) Contains the id's of images that have been downloaded to prevent duplicate uploads (keeps the last 50 id's)
filesDict.json (created on initial run) When images are downloaded they are given an id's and put into this JSON file that acts as the queue
images (folder) (created on initial run) Where the images are downloaded to.

UI (PySimpleGUI)

https://github.com/PySimpleGUI/PySimpleGUI

Limitations

Currently, the bot only uploads images. This is due to the fact that it is using Selenium to interact with the Instagram web interface. The Instagram interface only allows for uploads of images. (currently looking into a way around this)

Caution

This project uses Selenium. What this means is that it does not use the Instagram API for posting, making Instagram think that it's a real user posting, BUT You should still be cautious by setting a reasonable wait times before posts. By default, this is set at 50 seconds. If you set it to something like 10 seconds, there is a chance that Instagram will notice bot activity.

TODOs

  • Adding Imgur.com to the list of options to take images from

  • Ability to add your own files to queue. Kind of like those sites that charge you to schedule Instagram posts.

  • Figuring out how to get videos to upload

If you want to contribute to the project, I would greatly appreciate it :)

License

This code is in no way affiliated with, authorized, maintained, sponsored, or endorsed by Instagram, Facebook inc. or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use it at your own risk.

auto-instagram-posting-bot's People

Contributors

henryalbu avatar

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.