Using proxy for all Kink modules, disabled head.

This commit is contained in:
DebaucheryLibrarian 2025-05-25 23:45:18 +02:00
parent f04968a40f
commit 91fb7800cc
1 changed files with 3 additions and 3 deletions

View File

@ -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}`);