https://github.com/marselester/igshelf
My Instagram local gallery.
https://github.com/marselester/igshelf
Last synced: about 1 month ago
JSON representation
My Instagram local gallery.
- Host: GitHub
- URL: https://github.com/marselester/igshelf
- Owner: marselester
- Created: 2020-10-25T03:12:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T23:22:40.000Z (over 4 years ago)
- Last Synced: 2024-06-20T12:41:03.523Z (11 months ago)
- Topics: instagram
- Language: Go
- Homepage: https://marselester.com/instagram/index.html
- Size: 2.45 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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).```sh
$ 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`.
```sh
$ ./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](docs/token.md).```sh
$ 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`.
```zsh
$ export IGSHELF_TOKEN
$ vared -p "Enter access token: " IGSHELF_TOKEN
```