Added Mike Adriano scraper (True Anal, All Anal, Swallowed, Nympho). Updated README.

This commit is contained in:
2019-11-09 01:22:50 +01:00
parent 9f0a48f581
commit e9277028e2
16 changed files with 547 additions and 74 deletions

View File

@@ -2,13 +2,13 @@
/* eslint-disable newline-per-chained-call */
const bhttp = require('bhttp');
const cheerio = require('cheerio');
const { JSDOM } = require('jsdom');
const moment = require('moment');
const { matchTags } = require('../tags');
function scrapeLatest(html, site) {
const $ = cheerio.load(html, { normalizeWhitespace: true });
const { document } = new JSDOM(html).window;
const sceneElements = $('.scenes-latest').toArray();
return sceneElements.map((element) => {
@@ -31,7 +31,7 @@ function scrapeLatest(html, site) {
}
function scrapeUpcoming(html, site) {
const $ = cheerio.load(html, { normalizeWhitespace: true });
const { document } = new JSDOM(html).window;
const sceneElements = $('.scenes-upcoming').toArray();
return sceneElements.map((element) => {