A proof of concept Instagram photo-uploader using the unofficial go-insta library.
NOTE: I do not suggest you use this for anything other than playing around. You may find your account banned, who knows. All I know is that I acccept no responsibility for anything that may occur as a result of using it.
cd $GOPATH/src/github.com/jonogould
git clone git@github.com:github.com/jonogould/go-insta-poster.git
cd go-insta-poster
dep ensureYou have to configure some env variables in order to authenticate with your Instagram account.
cp .env.example .envAdd your Instagram username and password to the required vars in the .env file
Now that you are configured, you can post a photo to your account.
- Add your photo to the
/exampledir - Change the values for
filename,caption,qualityandfilterin themain.gofile (lines39-43) go run main.go
A successful post would result in Result: ok