goinsta icon indicating copy to clipboard operation
goinsta copied to clipboard

Get hashtag it return hashtag.NumResults = 0

Open thanhbk113 opened this issue 1 year ago • 2 comments

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)

}

thanhbk113 avatar Mar 24 '23 08:03 thanhbk113

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

Vaansh avatar Apr 11 '23 02:04 Vaansh

Do hashtag.Tags[0].Next() before running fmt.Println(hashtag.NumResults)

yms2772 avatar May 01 '23 08:05 yms2772