Cleaned up Gamma profile scraper.

This commit is contained in:
ThePendulum 2020-02-06 23:52:00 +01:00
parent 65f98c6387
commit 44f0064b42
1 changed files with 2 additions and 3 deletions

View File

@ -237,9 +237,8 @@ function scrapeActorSearch(html, url, actorName) {
return actorLink ? actorLink.href : null;
}
function scrapeProfile(html, url, actorName, siteSlug) {
const { document } = new JSDOM(html).window;
const { q, qu } = ex(html);
function scrapeProfile(html, url, actorName, _siteSlug) {
const { q } = ex(html);
const avatar = q('img.actorPicture');
const hair = q('.actorProfile .attribute_hair_color', true);