marselester / igshelf

My Instagram local gallery.

Home Page:https://marselester.com/instagram/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instagram shelf 📷

As the author of photos/videos I've uploaded to Instagram, I want to have a copy of my content. The easiest way is to download account data using https://www.instagram.com/download/request/ (zip archive) and render my Instagram timeline as an html page. For example, the following command will copy media files from a zip archive to ./content/ directory and create timeline.html (a gallery), timeline.json (metadata).

$ go build ./cmd/igshelf
$ ./igshelf -src=~/Downloads/marselester_20201007.zip

I can tweak template/timeline.tpl template and render a gallery from existing timeline.json.

$ ./igshelf

It may take up to 48 hours to get a link to an Instagram account data. If I don't want to wait, there is an option to download the content using Instagram API.

$ read -p "Enter access token: " -s IGSHELF_TOKEN
$ export IGSHELF_TOKEN
$ ./igshelf -src=api

Note, if you're using zsh you might have problems with read -p.

$ export IGSHELF_TOKEN
$ vared -p "Enter access token: " IGSHELF_TOKEN

About

My Instagram local gallery.

https://marselester.com/instagram/index.html


Languages

Language:Go 95.8%Language:Smarty 4.2%