Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@justalk/pornhub-api
Advanced tools
Powerful scraper for PornHub. Unlike others scrapers, it's working in 2020 August with their new website. It allows you to get any informations out of any page.
npm install @justalk/pornhub-api
Scraper: Parse any informations from a video page on PornHub : Related video. comments, view, vote up and so many others...
Download links: Get the download links in all the quality without registering
Search pagination: Possibility to scrap multiple page search
Search by different criteria: Possibility to scrap search by actor or title
Flexible: The results are always return in a very specific javascrypt type making it easy to integrate to your need.
async page(url, options)
name | type | description |
---|---|---|
url | String | url of the page |
keys | Array | List of the keys |
name of key | return type | description |
---|---|---|
title | String | Title |
description | String | Description |
views | Number | Number total of views |
up_votes | Number | Number of up vote |
down_votes | Number | Number of down vote |
percent | Number | Percent of up vote |
author | String | Name of the uploader |
author_subscriber | Number | Number of subscriber of the uploader |
pornstars | Array | Names of the pornstars |
categories | Array | List of the names of the categories |
tags | Array | List of the names of the tags |
production | String | Type of production |
duration | Number | Duration in second |
number_of_comment | Number | Total number of comments |
thumbnail | String | Url of the thumbnail |
upload_date | Date | Date of upload |
download_urls | Object | List of download link by quality |
comments | Object | List of comments with additionnals informations |
async search(value)
name | type | description |
---|---|---|
value | String | value search in pornhub |
keys | Array or String if there is only one option | List of the keys |
options | Array | List of the optional options |
name of options | return type | description |
---|---|---|
page | Number | Number of page to scraper |
production | String | Type of production targeted : homemade or professional |
search | String | Type of search targeted : video or pornstars |
name of keys | return type | description |
---|---|---|
link | String | Link of the videos |
title | String | Title of the videos |
duration | Number | Duration in seconds |
views | Number | Number total of views |
premium | Boolean | True if the video is premium, false if else |
author | String | Author of the video |
ratings | Number | Positive rating of the video in percentage |
name of keys | return type | description |
---|---|---|
actor | String | Name of the actor |
video_number | Number | Number of video of the actor |
view_number | Number | Number of view of the actor |
rank | Number | Rank of the actor |
const pornhub = require('@latsuj/pornhub-api');
const video = await pornhub.page(url, ['title']);
{
"title": "Name of the video"
}
const pornhub = require('@latsuj/pornhub-api');
const video = await pornhub.page(url, ['title','description']);
{
"title": "Name of the video",
"description": "Description of the video"
}
const pornhub = require('@latsuj/pornhub-api');
const video = await pornhub.page(url, ['title','pornstars','download_urls']);
{
"title": "Title of the video",
"pornstars": ["Sophie A","Rocco B"],
"download_urls": {
"720" : "https://p.com/link1",
"480" : "https://p.com/link2",
"360" : "https://p.com/link3"
}
}
const pornhub = require('@latsuj/pornhub-api');
const video = await pornhub.search("Aa",["title","link","premium","hd"]);
[{
"link": "https://p.com/link1",
"title": "Title of the video",
"hd": true,
"premium": true
},{
"link": "https://p.com/link2",
"title": "Title of the video",
"hd": false,
"premium": false
}]
const pornhub = require('@latsuj/pornhub-api');
const video = await pornhub.search("Aa",["actor","rank"],{production: 'homemade', search: 'pornstars'});
[{
"actor": "Herica Alue",
"rank": 8005,
},{
"actor": "Robert Laach",
"rank": 60
},{
"actor": "Aalix Lolo",
"rank": 6500
}]
For testing, install the node project and run the test command.
node install
npm test
Also, you can use the command under for running the test without the linter
npm run test-no
MIT - Copyright © JUSTAL Kevin
FAQs
Very complete scrapper for the famous porn website pornhub
The npm package @justalk/pornhub-api receives a total of 0 weekly downloads. As such, @justalk/pornhub-api popularity was classified as not popular.
We found that @justalk/pornhub-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.