TheForgotten69 / goinsta

Unofficial Instagram API written in Golang
MIT License
21 stars 6 forks source link

invalid memory address #5

Open hadifarnoud opened 3 years ago

hadifarnoud commented 3 years ago

I used this fork

package main

import (
    "log"
    "github.com/TheForgotten69/goinsta/v2"
)

func main() {  
  insta := goinsta.New("******", "*******")

  log.Printf("logged in as %s \n", insta.Account.Username)
  insta.Export("~/.goinsta")

  }

got this error when running it

$> ./test                                                                                                                                                    ✔  6402  20:10:10
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1295d60]

goroutine 1 [running]:
main.main()
    /Users/hadifarnoud/playground/instapy-docker/test.go:11 +0x60

can you please update the README? I want to use goinsta to block fake followers. some nasty people keep buying us fake followers.

TheForgotten69 commented 3 years ago

You didn't login it seems? What do you think should be changed @hadifarnoud apart this? There is also examples in the directory in the code section just in case And yeah there is so many bots on this platform it's insane

hadifarnoud commented 3 years ago

I just tried the example with my correct username and password. It's sad to see goinsta unmaintained. there are no good sdk out there for instagram. Instapy also lacks features