forked from DebaucheryLibrarian/traxxx
Set Kink rate limits, added method parameter for arbitrary requests.
This commit is contained in:
parent
8439631e2d
commit
b9556c9c86
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
10
src/argv.js
10
src/argv.js
|
@ -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',
|
||||
|
|
|
@ -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();
|
|
@ -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');
|
||||
});
|
Loading…
Reference in New Issue