Unofficial Instagram's private API written in Golang, inspired by Python instabot.
- Account login/logout, two-factor authentication supported.
- Post/delete a photo or an album to/from your feed.
- Like/unlike posts.
- Get post comments.
- Post/reply/delete comments.
- Like/unlike comments.
- Follow/unfollow users.
- Easily extend APIs by yourself.
- And more...
go get -u github.com/winterssy/instabot
import "github.com/winterssy/instabot"
bot := instabot.New("YOUR_USERNAME", "YOUR_PASSWORD")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
_, err := bot.Login(ctx, true)
if err != nil {
log.Fatal(err)
}
data, err := bot.GetMe(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Println(data)