Added proxy support for puppeteer session, used in Kink scraper.

This commit is contained in:
DebaucheryLibrarian
2025-05-25 22:27:43 +02:00
parent 091149a75b
commit 3c595bf780
2 changed files with 15 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ function scrapeAll(scenes, entity) {
}
async function fetchLatest(channel, page = 1) {
const { tab } = await http.getBrowserSession('kink');
const { tab } = await http.getBrowserSession('kink', { headless: false, 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();