Unofficial Instagram API for Golang
- HTTP2 by default. Goinsta uses HTTP2 client enhancing performance.
- Object independency. Can handle multiple instagram accounts.
- Like Instagram mobile application. Goinsta is very similar to Instagram official application.
- Simple. Goinsta is made by lazy programmers!
- Backup methods. You can use
Export
andImport
functions. - Security. Your password is only required to login. After login your password is deleted.
- No External Dependencies. GoInsta will not use any Go packages outside of the standard library.
go get -u -v gopkg.in/ahmdrz/goinsta.v2
package main
import (
"fmt"
"gopkg.in/ahmdrz/goinsta.v2"
)
func main() {
insta := goinsta.New("USERNAME", "PASSWORD")
// You can set a proxy as a transporter in goinsta
// insta.SetProxy("http://localhost:8080", true) // true for insecure connections
if err := insta.Login(); err != nil {
fmt.Println(err)
return
}
// Export your configuration
// after exporting you can use Import function instead of New function.
// insta, err := goinsta.Import("~/.goinsta")
// it's useful when you want use goinsta repeatedly.
insta.Export("~/.goinsta")
...
}
- go-instabot
- nick_bot
- instagraph
- icrawler
- ermes
- instafeed
- goinstadownload
- InstagramStoriesDownloader
- gridcube-challenge
- nyaakitties
- InstaFollower
- ...
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.
Goinsta used gopkg.in as versioning control. Stable new API is the version v2.0. You can get it using:
go get -u -v gopkg.in/ahmdrz/goinsta.v2
Ahmdrz
Bitcoin: 1KjcfrBPJtM4MfBSGTqpC6RcoEW1KBh15X
Mester