Follow the bot Here!
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
- Fulfill requirements in
requirements.txt
(i.e.pip install -r requirements.txt
). - 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) - 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)
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
- WSL
- Raspberry
- Windows 10
- Windows 11
- well, it should work likely everywhere pythons runs..
Contributors 💻 :
Without these libraries ❤️ this would not have been possible.
- pillow
- BeautifulSoup
- instagrapi