Moved Killergram to Aylo. Added profile tests.
This commit is contained in:
@@ -108,7 +108,7 @@ function scrapeProfile({ query }, entity) {
|
||||
profile.url = unprint.prefixUrl(data.url, entity.url);
|
||||
|
||||
profile.dateOfBirth = unprint.extractDate(data.birthDate, 'MMMM DD, YYYY');
|
||||
profile.birthPlace = data.nationality; // origin country rather than nationality
|
||||
profile.birthPlace = data.nationality?.name || data.nationality; // origin country rather than nationality
|
||||
|
||||
// height and weight are provided in both cm and lbs, but this seems to be a manual conversion; the format isn't always the same
|
||||
profile.height = unprint.extractNumber(data.height, { match: /(\d+)\s*cm/, matchIndex: 1 });
|
||||
|
||||
Reference in New Issue
Block a user