1.0.0 • Published 6 years ago

pornnhub v1.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

Install

$ npm install --save pornnhub

Usage

const pornhub = require('pornnhub');

const url = 'https://www.pornhub.com/view_video.php?viewkey=ph56fc59c124c0c';

pornhub(url, 'title').then(res => {
  console.log(res);
  // => { data: 'Hot kissing scene' }
});
pornhub(url, 'views').then(res => {
  console.log(res);
  // => { data: '615,031' }
});
pornhub(url, 'low').then(res => {
  console.log(res);
  // => { data: 'https://cv.phncdn.com/videos/201603/30/../240P_400K_72472822.mp4?a5c..3d8' }
});

API

pornhub(url, opts)

typeof url - string

tyepof opt - string

optsget
titletitle of the porn
viewstotal views on a video
percentpopularity percentage
upvotestotal upvotes on a video
downvotestotal downvotes on a video
providervideo uploaded by
low240px downloadable url
medium480px downloadable url
high720px downloadable url

Related

  • phub : PornHub Informer

License

MIT - Copyright © Rishi Giri