pionxzh / Pornhub.js

Powerful PornHub API for Node.js
MIT License
94 stars 17 forks source link

Search is returning empty/false values #55

Closed SiSchu closed 1 year ago

SiSchu commented 1 year ago
{
  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 commented 1 year ago

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

SiSchu commented 1 year ago

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

pionxzh commented 1 year ago

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

pionxzh commented 1 year ago

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.