Skip to content

This Bot will post random pictures with random captions on instagram daily.

Notifications You must be signed in to change notification settings

alsd4git/Insta-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

insta Bot

Follow the bot Here!

Introduction

This is a fun little project created in python. It will fetch random image from Unsplash and random caption from randomtextgenerator. Then it will post it on instagram using instagrapi.

First execition takes a little longer, it needs to cache your instagram account data

How to run

  1. Fulfill requirements in requirements.txt(i.e. pip install -r requirements.txt).
  2. Replace username and password with your credentials in the .env file and run it with: python main.py (first time it may ask for a login code via mail)
  3. To run it every 24h just add it to your crontab with crontab -l after setting everything up (and double checking it works!)

(optional, use virtualenv to set a proper environment)

Troubleshooting

if you get following error ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory you probably need to install libopenjp2-7

Tested on

  • WSL
  • Raspberry
  • Windows 10
  • Windows 11
  • well, it should work likely everywhere pythons runs..

Credits

Contributors 💻 :

Without these libraries ❤️ this would not have been possible.

  • pillow
  • BeautifulSoup
  • instagrapi

About

This Bot will post random pictures with random captions on instagram daily.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.9%
  • Shell 4.1%