Refactored FreeOnes scraper.
This commit is contained in:
@@ -128,7 +128,7 @@ async function scrapeProfile({ query }) {
|
||||
profile.measurements = bio.measurements?.replace(/["\s]+/g, '');
|
||||
|
||||
profile.hair = bio.hair;
|
||||
profile.eyes = bio.eyes;
|
||||
profile.eyes = bio.eyes?.replace(/eyes?/i, '').trim();
|
||||
profile.ethnicity = bio.ethnicity;
|
||||
|
||||
profile.height = convert(bio.height, 'cm');
|
||||
@@ -145,8 +145,6 @@ async function scrapeProfile({ query }) {
|
||||
];
|
||||
}
|
||||
|
||||
console.log(profile);
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user