@bowwow/pornhub_api
pornhub api
Last updated a year ago by sm7park .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bowwow/pornhub_api 
SYNC missed versions from official npm registry.

Pornhub API

Installation

Via NPM:

$ npm i @bowwow/pornhub_api

Visit http://chromedriver.storage.googleapis.com/index.html and download the chrome driver. Place it on your system PATH

Import

You can do it in two ways:

const PornHub = require('@bowwow/pornhub_api');
const ph = new PornHub();

ph.search({search:'porn'}).then(infos=>console.log(infos));

Usage

  • search(options) ⇒ object

it searches the pornhub database based on the options.

Kind: instance method of PornHub

Param Type Description
options object privacy gown

Available options

Name Type Description
category string category
page number page
search string search keyword
phrase Array<string>|string pornstars
tags Array<string> |string tags
ordering enum featured | newest | mostviewed | rating
period enum weekly | monthly | alltime
thumbsize enum small | medium | large | small_hd | medium_hd | large_hd
  • filterJSON(searchResult) ⇒ object

it filters out useless properties from the search result.

Kind: instance method of PornHub

Param Type Description
searchResult object from the function search()
  • hasFLV(videoID) ⇒ boolean

it returns true if the video with the id has a flv link, return false otherewise.

Kind: instance method of PornHub

Param Type Description
videoID string id of the video
  • getFLV(videoID) ⇒ string

it returns the flv link of the video.

Kind: instance method of PornHub

Param Type Description
videoID string id of the video

Current Tags

  • 1.0.8                                ...           latest (a year ago)

8 Versions

  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 8
Last Month 0
Dependencies (7)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |