Comments (7)
Good. Then we can have a randomVideo()
๐
from pornhub.js.
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.
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.
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.
Also I have a quick question. Does the library support the endpoints "/recommended" and "/video?o=ht" (hottest world wide)?
from pornhub.js.
/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.
Do you have an (approx) ETA on the next release which contains the current "issues"/suggestions?
from pornhub.js.
Related Issues (20)
- align `views` format in `video` and `searchVideo`
- Got 403 Forbidden with `video` HOT 61
- Got 403 Forbidden with `recommendedVideos` HOT 1
- `randomVideo()` returns false information HOT 2
- Feature request: `gif(url)` for GIF page HOT 2
- can you return a m3u8 link on const video = await pornhub.video(url)? HOT 1
- The `recommendedVideos` function always returns empty result HOT 34
- Non-ASCII Characters for search queries are not supported
- Feature Request: Video Previews (.webm)
- ๆฏไปไน่ฎฉไฝ ๆณๅฐ่ฆๅ่ฟไธช้กน็ฎ๏ผ HOT 2
- Is there an option for random videos from pornhub HOT 1
- How to use this package without vpn HOT 1
- How come only models and not pornstars has a `mostRecentVideos` property? HOT 1
- `<pornstar>.mostRecentVideos` returns empty array if no recent UPLOADED videos, but with recent TAGGED videos. HOT 2
- how to convert Embed Url Pornhub to hls m3u8 play HOT 1
- How to list videos and data from models based country HOT 4
- All videos are returning 404 HOT 4
- Video sources returns empty array HOT 3
- v 1.12.2 not yet available in npm HOT 1
- Invalid json response body HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pornhub.js.