mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
[scraper] removes proxy from kat
This commit is contained in:
parent
bccfe005af
commit
760c577ca7
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ const needle = require('needle');
|
|||
const moment = require('moment');
|
||||
const decode = require('magnet-uri');
|
||||
const Promises = require('../../lib/promises');
|
||||
const { getRandomProxy, getRandomUserAgent } = require('./../../lib/request_helper');
|
||||
const { getRandomUserAgent } = require('./../../lib/request_helper');
|
||||
|
||||
const defaultProxies = [
|
||||
'https://katcr.co'
|
||||
|
|
@ -65,7 +65,7 @@ function browse(config = {}, retries = 2) {
|
|||
|
||||
function singleRequest(requestUrl, config = {}) {
|
||||
const timeout = config.timeout || defaultTimeout;
|
||||
const options = { userAgent: getRandomUserAgent(), proxy: getRandomProxy(), open_timeout: timeout, follow: 2 };
|
||||
const options = { userAgent: getRandomUserAgent(), open_timeout: timeout, follow: 2 };
|
||||
|
||||
return needle('get', requestUrl, options)
|
||||
.then((response) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue