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!
- 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
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.
Just run:
python app.py
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. |
https://github.com/PySimpleGUI/PySimpleGUI
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)
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.
-
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 :)
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.