forked from DebaucheryLibrarian/traxxx
Refactored MariskaX to use Next data. Fixed Naughty America profile scraper breaking on Tonight's Girlfriend.
This commit is contained in:
@@ -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
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user