Refactored MariskaX to use Next data. Fixed Naughty America profile scraper breaking on Tonight's Girlfriend.

This commit is contained in:
DebaucheryLibrarian
2026-01-19 19:19:24 +01:00
parent 157667f771
commit dde3ea3a34
4 changed files with 151 additions and 58 deletions

View File

@@ -141,7 +141,7 @@ async function fetchScene(url, _channel) {
async function scrapeProfile({ query }) {
const profile = {};
profile.description = query.content('.bio_about_text');
profile.description = query.content('.bio_about_text, .performer-description');
profile.avatar = query.img('img.performer-pic, img.performer-img, img.peformer-img'); // sic peformer
return profile;
@@ -151,12 +151,9 @@ async function fetchProfile({ slug }, { channel }) {
const url = unprint.prefixUrl(`/pornstar/${slug}`, channel.url);
const res = await unprint.browserRequest(url, {
browser: {
headless: false,
},
select: '.bio-info, .performer-details',
async control(ctx) {
await ctx.locator('.bio-info').hover({ trial: true, timeout: 30000 }); // wait for bio to initialize
await ctx.locator('.bio-info, .performer-details').hover({ trial: true, timeout: 30000 }); // wait for bio to initialize
},
});