Tiwikiwi - flowplayer is not defined
RwbyChan opened this issue · 0 comments
RwbyChan commented
** Tried on:**
- https://tiwi.kiwi/embed-taog83frgv21.html
- https://tiwi.kiwi/embed-g5yk1yr03qv9.html
- https://tiwi.kiwi/embed-i6vz7118suj6.html
Usage (default):
const { TiwikiwiScraper } = require('tiwikiwi-scraper');
(async () => {
const url = 'https://tiwi.kiwi/embed-i6vz7118suj6.html';
const scrap = await new TiwikiwiScraper().scrap(url);
if (scrap.success) {
console.log(scrap.data.sources);
} else {
console.log(scrap)
}
})();
Result:
Scrap {
data: undefined,
url: 'https://tiwi.kiwi/embed-i6vz7118suj6.html',
scraper:
TiwikiwiScraper {
name: 'tiwikiwi',
domains: [ 'tiwi.kiwi' ],
urlPattern: /(?:(?:https?:)?\/\/)?(?:[^.]+\.)?tiwi\.kiwi\/(embed-([0-9a-zA-Z]+)\.html|([0-9a-zA-Z]+))/i,
runner: FlowplayerRunner { defaultOptions: {} },
defaultOptions: {} },
success: false,
error: Error: Evaluation failed: ReferenceError: flowplayer is not defined
at __puppeteer_evaluation_script__:1:1
at ExecutionContext.evaluateHandle (D:\PC_Folder\Websites\API\node_modules\puppeteer\lib\ExecutionContext.js:90:15)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
-- ASYNC --
at ExecutionContext.<anonymous> (D:\PC_Folder\Websites\API\node_modules\puppeteer\lib\helper.js:144:27)
at Page.evaluateHandle (D:\PC_Folder\Websites\API\node_modules\puppeteer\lib\Page.js:286:20)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
-- ASYNC --
at Page.<anonymous> (D:\PC_Folder\Websites\API\node_modules\puppeteer\lib\helper.js:144:27)
at source_scraper_puppeteer_runner_1.PuppeteerRunner.run (D:\PC_Folder\Websites\API\node_modules\source-scraper-flowplayer-runner\dist\FlowplayerRunner.js:13:43)
at PuppeteerRunner.exec (D:\PC_Folder\Websites\API\node_modules\source-scraper-puppeteer-runner\dist\PuppeteerRunner.js:45:26)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7) }