Simple script that generates and posts a gradient image to Instagram. Consider this an art project of no utility.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
gradient_daily
tests
.gitignore
LICENSE
README.md
example.jpg
requirements.txt
setup.py

README.md

Daily Gradient Bot for Instagram

This bot does just that: it generates a gradient image and pushes it to Instagram (@gradientdaily).

Look, ma, it's a gradient!

This image is resized, originally they are 1080x1080.

Installation

Since we're going to be using Pillow and other hardcore stuff, here's a list of dependencies:

sudo apt-get install libcurl4-openssl-dev python-dev libssl-dev libtiff5-dev
sudo apt-get install zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

Then I usually do the following:

git clone https://github.com/wswld/gradient_daily.git $PROJDIR
cd $PROJDIR
virtualenv .env
.env/bin/pip install -r requirements.txt

Of course you may have a better idea or try some kinky stuff. I don't judge.

Then you should be able to run:

.env/bin/gradient-daily --login XXXX --passwd YYYY --writepath /tmp 

That's it.

PS: This code is not really RAM-efficient, so if you're running it on a 500Mb machine, time to create some swap.