An open API service indexing awesome lists of open source software.

https://github.com/codedotjs/porn-hub

:fire: :fire: Horny Porny Corny
https://github.com/codedotjs/porn-hub

porn pornhub pornhub-api scrap

Last synced: 5 months ago
JSON representation

:fire: :fire: Horny Porny Corny

Awesome Lists containing this project

README

          




🅿 🅾 🆁 🅽 - 🅷 🆄 🅱







ℍ𝕆ℝℕ𝕐 ℙ𝕆ℝℕ𝕐 ℂ𝕆ℝℕ𝕐

### Install

```
$ npm install --save pornnhub
```

### Usage

```js
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' }
});

```

```js
pornhub(url, 'views').then(res => {
console.log(res);
// => { data: '615,031' }
});
```

```js
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`__

| __`opts`__ | __`get`__ |
|------------|----------------------------|
| __`title`__ | `title of the porn` |
| __`views`__ | `total views on a video` |
| __`percent`__ | `popularity percentage` |
| __`upvotes`__ | `total upvotes on a video` |
| __`downvotes`__ | `total downvotes on a video` |
| __`provider`__ | `video uploaded by` |
| __`low`__ | `240px downloadable url` |
| __`medium`__ | `480px downloadable url` |
| __`high`__ | `720px downloadable url` |

### Related

- __[`phub`](https://github.com/CodeDotJS/phub)__ `:` `PornHub Informer`

## License

MIT - Copyright © [Rishi Giri](http://rishi.ml)