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

Search is returning empty/false values #55

Closed
SiSchu opened this issue Mar 20, 2023 · 4 comments
Closed

Search is returning empty/false values #55

SiSchu opened this issue Mar 20, 2023 · 4 comments

Comments

@SiSchu
Copy link

SiSchu commented Mar 20, 2023

{
  data: [],
  paging: { current: NaN, maxPage: NaN, isEnd: true },
  counting: { from: 0, to: 0, total: 0 }
}

let title = "hentai"
const search = (await pornhub.searchVideo(title))
console.log(search)
@pionxzh
Copy link
Owner

pionxzh commented Mar 21, 2023

It's working on my side. Can you visit this URL without a problem?
https://www.pornhub.com/video/search?search=hentai

@SiSchu
Copy link
Author

SiSchu commented Mar 21, 2023

I can open the website but if I request it with the code above then the result is still like what I wrote.

@pionxzh
Copy link
Owner

pionxzh commented Mar 22, 2023

How about other APIs like .video('ph5ac81eabe203d') and .searchAlbum(keyword)?
I suspect it might be a network or language related problem.

@pionxzh
Copy link
Owner

pionxzh commented Mar 26, 2023

Closing this issue as we haven't received any further updates or reports on the issue. If you experience the problem again, feel free to reopen this issue and provide more details.

@pionxzh pionxzh closed this as completed Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants