Improved Hush T1 profile scraper.
This commit is contained in:
parent
37f01b68e8
commit
997914ec27
|
@ -208,13 +208,7 @@ function scrapeProfileT1({ el, query }, site) {
|
||||||
};
|
};
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
if (bio.measurements) {
|
profile.measurements = bio.measurements;
|
||||||
const [bust, waist, hip] = bio.measurements.split('-');
|
|
||||||
|
|
||||||
if (bust) profile.bust = bust;
|
|
||||||
if (waist) profile.waist = Number(waist);
|
|
||||||
if (hip) profile.hip = Number(hip);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bio.fun_fact) profile.description = bio.fun_fact;
|
if (bio.fun_fact) profile.description = bio.fun_fact;
|
||||||
if (bio.age) profile.age = Number(bio.age);
|
if (bio.age) profile.age = Number(bio.age);
|
||||||
|
|
Loading…
Reference in New Issue