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
- Host: GitHub
- URL: https://github.com/codedotjs/porn-hub
- Owner: CodeDotJS
- License: mit
- Created: 2018-08-13T04:53:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T05:11:29.000Z (over 7 years ago)
- Last Synced: 2024-12-17T08:14:28.874Z (about 1 year ago)
- Topics: porn, pornhub, pornhub-api, scrap
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 30
- Watchers: 9
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)