forked from DebaucheryLibrarian/traxxx
Added Mike Adriano scraper (True Anal, All Anal, Swallowed, Nympho). Updated README.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user