Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get hashtag it return hashtag.NumResults = 0 #49

Open
thanhbk113 opened this issue Mar 24, 2023 · 2 comments
Open

Get hashtag it return hashtag.NumResults = 0 #49

thanhbk113 opened this issue Mar 24, 2023 · 2 comments

Comments

@thanhbk113
Copy link

thanhbk113 commented Mar 24, 2023

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)

}
@Vaansh
Copy link

Vaansh commented Apr 11, 2023

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

@yms2772
Copy link

yms2772 commented May 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants