const { MP4UploadScraper } = require('mp4upload-scraper');
(async () => {
const url = 'https://mp4upload.com/embed-piy9gipghtm8.html';
const scrap = await new MP4UploadScraper().scrap(url);
if (scrap.success)
console.log(scrap.data.sources);
})();
(node:19436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'map' of undefined
(node:19436) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19436) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
Scrap {
data: undefined,
url: 'https://mp4upload.com/embed-piy9gipghtm8.html',
scraper:
MP4UploadScraper {
name: 'mp4upload',
domains: [ 'mp4upload.com' ],
urlPattern: /(?:(?:https?:)?\/\/)?(?:[^.]+\.)?mp4upload\.com\/embed-([a-zA-Z0-9]+)\.html/i,
runner: JWPlayerRunner { defaultOptions: {} },
defaultOptions: {} },
success: false,
error: TypeError: Cannot read property 'map' of undefined
at MP4UploadScraper.execWithArgs (C:\Users\robin\Desktop\MasteranimeAP\MasteranimeAP\node_modules\source-scraper-jwplayer-runner\dist\SimpleJWPlayerScraper.js:18:30)
at runner.run (C:\Users\robin\Desktop\MasteranimeAP\MasteranimeAP\node_modules\source-scraper-jwplayer-runner\node_modules\source-scraper-core\dist\RunnerScraper.js:9:103)
at source_scraper_puppeteer_runner_1.PuppeteerRunner.run (C:\Users\robin\Desktop\MasteranimeAP\MasteranimeAP\node_modules\source-scraper-jwplayer-runner\dist\JWPlayerRunner.js:18:24)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7) }