Add Babepedia scraper #37

Closed
Ghost wants to merge 10 commits from (deleted):master into master
Showing only changes of commit 9173d68c56 - Show all commits

View File

@@ -18,7 +18,7 @@ function scrapeProfile({ query, el }, actorName, entity, include) {
}
const avatar = query.url('#profimg a');
if (avatar) profile.avatar = { src: `${entity.url}${avatar}`, credit: 'Babepedia' };
if (avatar && avatar.indexOf('javascript:alert(') === -1) profile.avatar = { src: `${entity.url}${avatar}`, credit: 'Babepedia' };
const aka = query.cnt('#aka');
if (aka) profile.aliases = aka?.replace('aka ', '')?.split('/').map(alias => alias.trim());