Updated scrapers to latest available commit

This commit is contained in:
Gabisonfire
2024-01-17 18:22:01 -05:00
parent 909ade0d8e
commit 2351d92885
5 changed files with 412 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
const moment = require("moment");
const yts = require('./yts_api');
const scraper = require('./yts_scraper')
async function scrape() {
const scrapeStart = moment();
console.log(`[${scrapeStart}] starting ${scraper.NAME} full scrape...`);
return yts.maxPage()
.then(maxPage => scraper.scrape(maxPage))
.then(() => console.log(`[${moment()}] finished ${scraper.NAME} full scrape`));
}
module.exports = { scrape, NAME: scraper.NAME };