lucasleandro1204 / pornsearch Goto Github PK
View Code? Open in Web Editor NEWEasy way to search for porn content!
License: MIT License
Easy way to search for porn content!
License: MIT License
On call .gifs() with. provider = 'Sex' all urls returns forbidden
PornDriver.driver('sex').gifs()
The url field returned is not working , it looks there is some kind of restriction with this provider
.
Modules.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Sex = require('../modules/Sex');
var _Sex2 = _interopRequireDefault(_Sex);
var _Porngifs = require('../modules/Porngifs');
var _Porngifs2 = _interopRequireDefault(_Porngifs);
var _Pornhub = require('../modules/Pornhub');
var _Pornhub2 = _interopRequireDefault(_Pornhub);
var _Redtube = require('../modules/Redtube');
var _Redtube2 = _interopRequireDefault(_Redtube);
var _Xvideos = require('../modules/Xvideos');
var _Xvideos2 = _interopRequireDefault(_Xvideos);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = {
sex: _Sex2.default,
porngifs: _Porngifs2.default,
pornhub: _Pornhub2.default,
redtube: _Redtube2.default,
xvideos: _Xvideos2.default
};
module.exports = exports['default'];
Add Porngifs.js to the "modules" folder.
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _GifMixin = require('../core/GifMixin');
var _GifMixin2 = _interopRequireDefault(_GifMixin);
var _VideoMixin = require('../core/VideoMixin');
var _VideoMixin2 = _interopRequireDefault(_VideoMixin);
var _AbstractModule = require('../core/AbstractModule');
var _AbstractModule2 = _interopRequireDefault(_AbstractModule);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Porngifs = function (_AbstractModule$with) {
(0, _inherits3.default)(Porngifs, _AbstractModule$with);
function Porngifs() {
(0, _classCallCheck3.default)(this, Porngifs);
return (0, _possibleConstructorReturn3.default)(this, (Porngifs.__proto__ || (0, _getPrototypeOf2.default)(Porngifs)).apply(this, arguments));
}
(0, _createClass3.default)(Porngifs, [{
key: 'gifUrl',
value: function gifUrl(page) {
return 'https://porngifs.xxx/page' + (page || this.firstpage + '/' + '?s=' + this.query);
}
}, {
key: 'gifParser',
value: function gifParser($) {
var gifs = $('#masonry_container .masonry_box').not('.ad_box');
return gifs.map(function (i, gif) {
var data = $(gif).find('a.image_wrapper');
var title = data.attr('title');
var url = data.find('img').data('gif');
if (!title || !url) {
return;
}
return {
title: title,
url: url
};
}).get();
}
}, {
key: 'name',
get: function get() {
return 'Porngifs';
}
}, {
key: 'firstpage',
get: function get() {
return 1;
}
}]);
return Porngifs;
}(_AbstractModule2.default.with(_GifMixin2.default, _VideoMixin2.default));
exports.default = Porngifs;
module.exports = exports['default'];
Driver will be called porngifs
Is this possable?
is there any way to add when the video was posted? or sort it by the date?
Thanks
this project awesome . i have problem how to search method . i want parameter on_page . example on_page = 2
this result only show in page 1 . how to search on page 2 - last page
const fs = require('fs');
const Pornsearch = require('pornsearch');
const Searcher = new Pornsearch('tiger benson', driver = 'xvideos');
Searcher.videos(1)
.then(videos => {
Umm this isn't really like a suggestion that you might be looking for, but like it would be cool if we can check how much pages and number of results each search returns. Like im using it to make it pull out a random webm each search, but if it hits a page number that exceeds the page number, or it hits a number that exceeds the number of search results, it errors lol.
Currently I'm doing this way:
https://github.com/LucasLeandro1204/Pornsearch/blob/master/src/Pornsearch.js#L78
But It's never gonna work in browser, so we have to require every module instead of searching for them.
It will be easy xd
is/ will there be a function where the results aren't related to any page, so it can take them off all the pages?
When I tried to make a search with multiple tags it crashed telling me that "replace" was undefined.
To be precise, it's in Porhub.js
at line 75.
thumb: data.find('img').attr('data-mediumthumb').replace(/\([^)]*\)/g, ''),
I'd guess the regex in the Gif part would do the same error but I'm not using it...
In any case, for now I just had to remove the replace part and deal with it...
This is my current code:
const Pornsearch = require('pornsearch');
const Searcher = new Pornsearch(args.slice().join(' '), driver = 'redtube');
I am getting the error:
ReferenceError: driver is not defined
How to fix this?
Thanks!
Hello,
I am trying some researches but I always end up with
'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Do you know how to solve this issue ?
example channe name is john
how to find all video in channel john
We have to setup a webpack bundle, so it can be translated to older javascript and then we can use Imports instead of require.
Think you could add this tube?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.