Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 0d8c92aac9 1.215.2 2022-04-10 21:51:24 +02:00
DebaucheryLibrarian b9556c9c86 Set Kink rate limits, added method parameter for arbitrary requests. 2022-04-10 21:51:22 +02:00
8 changed files with 54 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.215.1",
"version": "1.215.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.215.1",
"version": "1.215.2",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.215.1",
"version": "1.215.2",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@ -366,6 +366,10 @@ const networks = [
name: 'Kink',
url: 'https://www.kink.com',
description: 'Authentic Bondage & Real BDSM Porn Videos. Demystifying and celebrating alternative sexuality by providing the most authentic kinky videos. Experience the other side of porn.',
parameters: {
interval: 1000,
concurrency: 1,
},
},
{
slug: 'letsdoeit',

View File

@ -4721,7 +4721,7 @@ const sites = [
slug: 'boundgangbangs',
name: 'Bound Gangbangs',
alias: ['bgb', 'bgbs'],
url: 'https://www.kink.com/channel/bound-gangbangs',
url: 'https://www.kink.com/channel/bound-gang-bangs',
description: 'Powerless whores tied in bondage and stuffed with a cock in every hole. At BoundGangbangs women get surprise extreme gangbangs, blindfolds, deepthroat blowjobs, sex punishment, bondage, double penetration and interracial sex.',
parent: 'kink',
},

View File

@ -152,7 +152,7 @@ async function init() {
}
if (argv.request) {
const res = await http.get(argv.request);
const res = await http[argv.requestMethod](argv.request);
console.log(res.status, res.body);
}

View File

@ -323,6 +323,16 @@ const { argv } = yargs
type: 'array',
alias: ['delete-movie', 'remove-movies', 'remove-movies'],
})
.option('request', {
describe: 'Make an arbitrary HTTP request',
type: 'string',
})
.option('request-method', {
alias: 'method',
describe: 'HTTP method for arbitrary HTTP requests',
type: 'string',
default: 'get',
})
.option('request-timeout', {
describe: 'Default timeout after which to cancel a HTTP request.',
type: 'number',

18
src/tools/kink.js Normal file
View File

@ -0,0 +1,18 @@
'use strict';
const bhttp = require('bhttp');
async function init() {
const res = await bhttp.head('https://www.kink.com/consent', {
headers: {
Host: 'www.kink.com',
'User-Agent': 'HTTPie/2.6.0',
Accept: '*/*',
Connection: 'keep-alive',
},
});
console.log(res.body.toString(), res.headers, res.statusCode);
}
init();

17
src/tools/server.js Normal file
View File

@ -0,0 +1,17 @@
'use strict';
const express = require('express');
const app = express();
app.get('/', (req, res) => {
console.log(req.httpVersion);
console.log(req.headers);
console.log(req.body);
res.status(204).send();
});
app.listen(5555, () => {
console.log('Server started');
});