goinsta
goinsta copied to clipboard
Get hashtag it return hashtag.NumResults = 0
my code to get post from hashtag but it return zero result:
package main
import (
"fmt"
"github.com/Davincible/goinsta/v3"
)
func main() {
insta, err := goinsta.Import("./goinsta")
if err != nil {
panic(err)
}
tag := "golang"
hashtag, err := insta.Searchbar.SearchHashtag(tag)
if err != nil {
panic(err)
}
fmt.Println(hashtag.NumResults)
}
Not exactly the same issue but the following snippet also doesn’t work correctly
if err := insta.Login(); err != nil {
panic(err)
}
var following = insta.Account.Following("", goinsta.DefaultOrder) // unexpectedly returns 0 Users
Do hashtag.Tags[0].Next()
before running fmt.Println(hashtag.NumResults)