alsd4git / Insta-Bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 95.9%Language:Shell 4.1%