pionxzh / Pornhub.js

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

Feature request: `gif(url)` for GIF page #85

Open iced-queen opened 1 year ago

iced-queen commented 1 year ago

The title says it all lol. Currently the gifSearch function only returns:

{
  title: 'redheads1',
  url: 'https://www.pornhub.com/gif/19926051',
  mp4: 'https://dl.phncdn.com/pics/gifs/019/926/051/19926051a.mp4',
  webm: 'https://dl.phncdn.com/pics/gifs/019/926/051/19926051a.webm',
  preview: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
}

But if you go to the page, you'll notice that it also has "votes", "views" and the coolest part, "From this video", which links to the video that the gif is from, and even the timestamp. Other than that it also returns "Pornstars", tags and the date (relative format) of upload.

pionxzh commented 1 year ago

I think .gif(url) is the missing part. I will try to work on this this weekend, got too many projects to do 😮‍💨

iced-queen commented 1 year ago

I think .gif(url) is the missing part. I will try to work on this this weekend, got too many projects to do 😮‍💨

Great! I hope you find time to test and hopefully fix the #80 issue as well. 😄