lawrencenull / Pornsearch

Easy way to search for porn content!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pornsearch

Easy way to search for porn content

If you have any suggestions of a website, open an issue!

Simple search

const pornsearch = require('pornsearch');
const pornhub = pornsearch.load('pornhub');

pornhub.videos('boobs')
  .then(response => console.log(response));

pornhub.gifs('pov')
  .then(response => console.log(response));

Support

Basic search

Site - Module name Videos Gifs
pornhub X X
sex X X
redtube X
xvideos X

Videos structure

What will return in video search

Site - Module name URL Thumbnail Duration
pornhub X X X
sex X X X
redtube X X X
xvideos X X X

Gifs structure

What will return in gif search

Site - Module name URL WEBM
pornhub X X
sex X

Installation

Via GIT:

$ git clone git://github.com/LucasLeandro1204/api.git node_modules/pornsearch

Via NPM:

$ npm install pornsearch

Output

Videos

If has success, the return will be an array with videos, structured as

{
  title: 'video title',
  url: 'video url',
  duration: 'video duration',
  thumb: 'video thumbnail'
}

If has error, will be returned a message like

No results for search related to *relation* in page *page* and category number *number*

Check the support table to know exactly what will be returned

Gifs

If has success, the return will be an array with gifs, structured as

PORNHUB gifs in general are extremely heavy, so be a nice person and share webm (sex.com gifs are nice)

{
  title: 'gif title',
  url: 'gif url',
  webm: 'gif webm url'
}

If has error, will be returned a message like

No results for search related to *relation* in page *page*

Check the support table to know exactly what will be returned

Usage

First require Pornsearch

const pornsearch = require('pornsearch');

Then pass the website you want to search on (like 'pornhub')

const pornhub = pornsearch.load('pornhub');

Check the support table to know what you can do

An error will be thrown if don't support

Search for related only

pornhub.videos('boobs')
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.log(error);
  });

pornhub.gifs('pussy')
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.log(error);
  });

Specify the page number to search on

pornhub.videos('ass', 3);

pornhub.gifs('teta', 7);

Log only url

pornhub.gifs('teen')
  .then((gifs) => {
    console.log(gifs.map(gif => gif.url));
  });

About

Easy way to search for porn content!

License:MIT License


Languages

Language:JavaScript 100.0%