Git Product home page Git Product logo

Comments (7)

pionxzh avatar pionxzh commented on August 25, 2024 1

Good. Then we can have a randomVideo() ๐Ÿ˜„

from pornhub.js.

pionxzh avatar pionxzh commented on August 25, 2024

Thanks for the suggestion, and I totally understand the use case of this. However, the role of this library is to serve as an unofficial API layer for PornHub, which means my goal is to provide functionalities that can be done on the official website. Therefore, in this case, since there isn't a built-in "random" feature on PornHub, you can achieve a similar outcome by getting a list of videos (with random parameters from things like pre-defined list of keywords) and randomly selecting one from the list.

Few things I have checked:

  • "Hot porn videos Internationally" on the main page are just a few sets of videos, not really randomized.
  • "Recently Featured Porn Videos" on the video page is not randomized.
  • "Top Trending Pornstars" on the pornstars page is randomized, it contains both pornstars and models, but you cannot configure it.

from pornhub.js.

iced-queen avatar iced-queen commented on August 25, 2024

With a quick google search, I found a URL looking like this: https://www.pornhub.com/random (just FYI; if you just click on the link from here, it just redirects you to the main page of PH. If you try to copy the URL and paste it in the search bar where URLs are, it redirects you to a random video.)
When I clicked on it, it redirected me onto a completely random video (I think), so I do actually think it is possible :))

Although, I do not know if this allow configs.

Shoutout to "Katie" from this random reddit post ๐Ÿ˜‚

from pornhub.js.

iced-queen avatar iced-queen commented on August 25, 2024

Great! I'm trying to figure out if it provides optional tags & if there's an endpoint like this for Pstars/Models as well, so they can all be in the same release if they exist. ๐Ÿ˜„

from pornhub.js.

iced-queen avatar iced-queen commented on August 25, 2024

Also I have a quick question. Does the library support the endpoints "/recommended" and "/video?o=ht" (hottest world wide)?

from pornhub.js.

pionxzh avatar pionxzh commented on August 25, 2024

/recommended is not being supported as it's a personalized page, and I didn't find any useful use case for this page.
/video?o=? is not being supported, but I think this is a valid use case, feel free to open another feature request!

from pornhub.js.

iced-queen avatar iced-queen commented on August 25, 2024

Do you have an (approx) ETA on the next release which contains the current "issues"/suggestions?

from pornhub.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.