Socket
Socket
Sign inDemoInstall

github.com/zaddok/goinsta/v4

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/zaddok/goinsta/v4

Package goinsta implements Goinsta private API in Golang. We changed the API for the comfort of the user. The new API is object-oriented making the programming bot task less repetitive. Probably you will find this API a bit confusing. This API is a little representation of Instagram engineers work. We are trying to humanize it. Do not care. If you have any question you can open an issue. Currently the API is uncomplete (we did it in a week xd). If you see that Goinsta needs any method or any new feature you are free to open an issue in github.com/ahmdrz/goinsta we will work to solve your issue as soon as possible. Also you can make your own contributions. See https://github.com/ahmdrz/goinsta/blob/master/CONTRIBUTION.md


Version published

Readme

Source

GoInsta. Make Goinsta Great Again!

Unofficial Instagram API for Golang

Build Status GoDoc Go Report Card Coverage Status

Versioning

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

Features

  • 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 and Import 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.

New Version !

We are working on a new object-oriented API. Try it and tell us your suggestions. See https://github.com/ahmdrz/goinsta/blob/master/CONTRIBUTING.md

If you want to use the old version you can found it in v1 branch or using gopkg.in/ahmdrz/goinsta.v1/

Sorry for breaking dependences :(. You can use this command in your project folder to update old master branch to v1.

for i in `grep -r ahmdrz ./ | awk '{split($0, a, ":"); print a[1]}'`; do sed -i 's/github\.com\/ahmdrz\/goinsta/gopkg\.in\/ahmdrz\/goinsta\.v1/g' $i; done

Package installation

go get -u -v gopkg.in/ahmdrz/goinsta.v2

CLI installation

go get -u -v gopkg.in/ahmdrz/goinsta.v2
go install gopkg.in/ahmdrz/goinsta.v2/goinsta

Example

package main

import (
	"fmt"

	"gopkg.in/ahmdrz/goinsta.v2"
)

func main() {
  //insta, err := goinsta.Import("~/.goinsta")
  insta := goinsta.New("USERNAME", "PASSWORD")

  // also you can use New function from gopkg.in/ahmdrz/goinsta.v2/utils

  // 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.Export("~/.goinsta")

  ...
}

Projects using Goinsta

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.

Donate

Ahmdrz

btc Bitcoin: 1KjcfrBPJtM4MfBSGTqpC6RcoEW1KBh15X

Mester

btc Bitcoin: 37aogDJYBFkdSJTWG7TgcpgNweGHPCy1Ks

Analytics

Schema

The objects of the following schema can point to other objects defined below.

Instagram

  • Account: Personal information and account interactions.
    • Followers
    • Following
    • Feed
      • FeedMedia
        • Item(s)
    • Stories
      • StoryFeed
        • Item(s)
    • Liked
      • FeedMedia
        • Item(s)
    • Saved
      • SavedMedia
        • Item(s)
    • Tags
      • FeedMedia
        • Item(s)
    • Blocked
      • BlockedUser(s)
  • Profiles: User interaction.
    • Blocked
      • BlockedUser(s)
    • Get user using ID
      • User
    • Get user using Username
      • User
  • Media:
    • Items
    • Comments # Comments and Comment are different.
      • User
      • Comment(s) # Slice of Comment
    • Likes
    • Likers
  • Item
    • Items # If it is a carousel.
  • Search:
    • Location
    • Username
    • Tags
    • Location Deprecated
    • Facebook
  • Activity:
    • Following
    • Recent
  • Hashtag: Hashtag allows user to search using hashtags.
    • Stories
      • StoryMedia
    • Media # By default hashtag contains Medias in the structure

FAQs

Last updated on 15 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc