From 91fb7800cc1b5e220e9808e732153c9d0cec3507 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 25 May 2025 23:45:18 +0200 Subject: [PATCH] Using proxy for all Kink modules, disabled head. --- src/scrapers/kink.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scrapers/kink.js b/src/scrapers/kink.js index 6c4c3839..3a93192b 100755 --- a/src/scrapers/kink.js +++ b/src/scrapers/kink.js @@ -64,7 +64,7 @@ function scrapeAll(scenes, entity) { } async function fetchLatest(channel, page = 1) { - const { tab } = await http.getBrowserSession('kink', { headless: false, useGlobalBrowser: false, useProxy: true }); + const { tab } = await http.getBrowserSession('kink', { useGlobalBrowser: false, useProxy: true }); const url = `${channel.parent.url}/search?type=shoots&channelIds=${channel.parameters?.slug || channel.slug}&sort=published&page=${page}`; const res = await tab.goto(url); const status = res.status(); @@ -149,7 +149,7 @@ function scrapeScene({ query }, url, entity) { } async function fetchScene(url, channel) { - const { tab } = await http.getBrowserSession('kink'); + const { tab } = await http.getBrowserSession('kink', { useGlobalBrowser: false, useProxy: true }); const res = await tab.goto(url); const status = res.status(); @@ -206,7 +206,7 @@ async function scrapeProfile({ query }, actorUrl) { async function fetchProfile({ name: actorName }, entity) { const networkUrl = entity.type === 'channel' ? entity.parent.url : entity.url; - const { tab } = await http.getBrowserSession('kink'); + const { tab } = await http.getBrowserSession('kink', { useGlobalBrowser: false, useProxy: true }); // const searchRes = await tab.goto(`${networkUrl}/search?type=performers&q=${actorName}`); const searchApiRes = await tab.goto(`https://www.kink.com/api/v2/search/suggestions/performers?term=${actorName}`);