@justalk/pornhub-api
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -42,3 +42,2 @@ 'use strict'; | ||
const error_message = error => { | ||
console.log(error); | ||
if (error) { | ||
@@ -45,0 +44,0 @@ error.message = constants.errors.DEFAULT; |
{ | ||
"name": "@justalk/pornhub-api", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Very complete scrapper for the famous porn website pornhub", | ||
@@ -43,2 +43,3 @@ "license": "MIT", | ||
"coveralls": "^3.1.0", | ||
"nock": "^13.0.4", | ||
"nyc": "^15.1.0", | ||
@@ -45,0 +46,0 @@ "xo": "*" |
@@ -10,2 +10,3 @@ # PORNHUB API | ||
![Last version](https://img.shields.io/github/license/justalk/pornhub-api.svg?style=flat-square) | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/xojs/xo) | ||
@@ -30,3 +31,2 @@ ![Star the project](https://img.shields.io/github/stars/justalk/pornhub-api?style=social) | ||
## API | ||
@@ -65,3 +65,3 @@ | ||
| number_of_comment | Number | Total number of comments | | ||
| thumbnail | String | Url of the thumbnail | | ||
| thumbnail_url | String | Url of the thumbnail | | ||
| upload_date | Date | Date of upload | | ||
@@ -220,2 +220,5 @@ | download_urls | Object | List of download link by quality | | ||
The tests are not execute on pornhub directly, the calls to pornhub are all mock with `nock` to save html page of pornhub. | ||
It has been done for having page that wont evolve through time. By example, if a comment is added on the real link, the tests will still be ok. | ||
### Note | ||
@@ -222,0 +225,0 @@ |
11440
229
5
77