Refactored FreeOnes scraper.
This commit is contained in:
@@ -249,7 +249,8 @@ const actors = [
|
||||
{ entity: 'boobpedia', name: 'Paige British', fields: ['avatar'] },
|
||||
{ entity: 'angelogodshackoriginal', name: 'Emily Pink', fields: ['avatar'] },
|
||||
{ entity: 'bradmontana', name: 'Alicia Ribeiro', fields: ['avatar', 'gender'] },
|
||||
{ entity: 'adultempire', name: 'Melissa Moore', fields: ['avatar'] },
|
||||
{ entity: 'adultempire', name: 'Abella Danger', fields: ['avatar', 'description', 'measurements', 'eyes', 'height', 'weight'] },
|
||||
{ entity: 'freeones', name: 'Sophia Locke', fields: ['avatar', 'description', 'dateOfBirth', 'age', 'birthPlace', 'nationality', 'ethnicity', 'eyes', 'hairColor', 'bust', 'cup', 'waist', 'hip', 'height', 'weight', 'foot', 'socials', 'hasTattoos', 'tattoos', 'hasPiercings', 'piercings', 'naturalBoobs'] },
|
||||
];
|
||||
|
||||
const actorScrapers = scrapers.actors;
|
||||
@@ -291,7 +292,7 @@ const validators = {
|
||||
height: (value) => !!Number(value) && value > 130,
|
||||
weight: (value) => !!Number(value) && value > 40,
|
||||
eyes: (value) => typeof value === 'string' && value.length > 3,
|
||||
hairColor: (value) => typeof value === 'string' && value.length > 3,
|
||||
hairColor: (value) => typeof value === 'string' && value.length > 2,
|
||||
measurements: (value) => /(\d+)([a-z]+)?(?:\s*[-x]\s*(\d+)\s*[-x]\s*(\d+))?/i.test(value), // from actors module
|
||||
dateOfBirth: (value) => value instanceof Date && !Number.isNaN(value.getFullYear()),
|
||||
hasTattoos: (value) => typeof value === 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user