UNPKG

bedetheque-scraper

Version:

NodeJS script to scrap the entire database of dbgest.com / bedetheque.com (approx. 260.000+ albums)

13 lines (11 loc) 297 B
export class Utils { static setTimeoutPromise(ms:number) { return new Promise((resolve) => { setTimeout(() => { resolve(); }, ms); }); } static urlToSerieID(url: string) { const match = url.match(/serie-([0-9]+)-/); return match ? parseInt(match[1] , 10) : 0 ; } }