Add Babepedia scraper #37

Closed
Ghost wants to merge 10 commits from (deleted):master into master
2 changed files with 9 additions and 2 deletions
Showing only changes of commit 6d03d15618 - Show all commits

View File

@@ -112,6 +112,12 @@ const networks = [
url: 'https://www.babes.com',
parent: 'mindgeek',
},
{
slug: 'babepedia',
name: 'Babepedia',
url: 'https://www.babepedia.com',
type: 'info',
},
{
slug: 'badoink',
name: 'BaDoink',

View File

@@ -134,13 +134,14 @@ function scrapeSearch({ query, el }, actorName, entity, include) {
}
async function fetchProfile(actor, entity, include) {
const actorName = actor.name.replace('\'', '');
const actorName = actor.name;
const searchName = actorName.replace('\'', '');
if (actor?.gender === 'male') {
return null;
}
let url = `${entity.url}/search/${actorName}`;
let url = `${entity.url}/search/${searchName}`;
let res = await qu.get(url);
// Check if search redirects