gustavonovaes / blaze-double-roulette-crawler

A SPA crawler that watches Blaze Double roulette

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blaze-double-roulette-crawler

A SPA crawler that watches Blaze Double roulette https://blaze.com/pt/games/double

Instalation

npm i @gustavonovaes/blaze-double-roulette-crawler

Usage

Code example:

const { watchRoulette }  = require("@gustavonovaes/blaze-double-roulette-crawler");

const watchOptions = {
  waitMs: 1000, // Waits 1s between each read
  includeNumber: true, // Reads the number 
  viewPort: { width: 360, height: 740 }, // viewPort for screenshot
  chatScreenshot: true, // Takes a screenshot of chat section
};

watchRoulette(async ({ roulette, screenshotFilepath }) => {
  console.log(roulette);  // [{ color: "red", number: 1 }, { color: "white", number: 0 }, ...]
  console.log(screenshotFilepath); // /tmp/screenshot.png
}, watchOptions);
ezoic increase your site revenue

About

A SPA crawler that watches Blaze Double roulette


Languages

Language:JavaScript 100.0%