1.0.0 • Published 2 years ago

porny v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Porny

Be able to scrap images of any porn website of any categories

Installation

npm i porny
//github
const porny = require('./src/porny.js');

//node installation
const porny = require('porny');

Example

porny.get({
    search: "anal",
}).then((res) => {
    console.log(res);
}).catch((err) => {
    console.log('[ERROR] ' + err);
});

How to use ?

const options = {
    search: "What categorie you want ? example : 'pussy' or 'mia khalifa'", //by default you can delete it to randomize the search
    limit: 5, //if you want to setup a result limit
    type: "real", //the type are "real", "hentai" or "all" (by default it's all)
    extension: "gif", //if you want animated nsfw. See below for the different extensions (by default it's all)
    domains: ["xvideos.com", "pornhub.com", "hentai.tv"], //setup the domains you want to automatically scrap (By default it's ['xvideos.com', 'xnxx.com', 'xhamster.com', 'heavy-r.com', "pornhub.com"])
    addDomains: ["xnxx.com"], //if you want to add domains to the default domains
    noDatabase: false, //by default when you scrap images it will be resgiter in database to do not made to much request but you can avoid it. Sometimes it create probleme when you change the file extension for example.
}

porny.get(options).then((res) => {
    console.log(res);
}).catch((err) => {
    console.log('[ERROR] ' + err);
});

No result or same results ?

Add this to your options :

{
    noDatabase: true
}

File extension

const extensions = [
    "jpg",
    "gif",
    "bmp",
    "png",
    "svg",
    "webp",
    "ico",
    "raw"
]