forked from DebaucheryLibrarian/traxxx
Refactoring deep scrape. Added tag posters.
This commit is contained in:
@@ -94,7 +94,7 @@ function scrapeProfile({ qu }, _actorName, origin) {
|
||||
const keys = qu.all('.model-profile h5', true);
|
||||
const values = qu.all('.model-profile h5 + p', true);
|
||||
|
||||
const bio = keys.reduce((acc, key, index) => ({ ...acc, [slugify(key, { delimiter: '_' })]: values[index] }), {});
|
||||
const bio = keys.reduce((acc, key, index) => ({ ...acc, [slugify(key, '_')]: values[index] }), {});
|
||||
|
||||
profile.age = Number(bio.age);
|
||||
profile.description = qu.q('.model-bio', true);
|
||||
|
||||
Reference in New Issue
Block a user