Skip to content

Web scraping with puppeteer for getting Crash game values

License

Notifications You must be signed in to change notification settings

caickdias/blaze-crash-scrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blaze crash game web srapping with Puppeteer

A simple functionality for getting crash values from Blaze until you close the server.

Getting started

Dependencies

Node 14.17.0

Installing

Clone this repository and open its folder.

git clone https://github.com/caickdias/blaze-crash-scrap.git
cd blaze-crash-scrap

Then run npm install to install dependencies

npm install

Usage

Server

To start scrapping the values, go to ./scrap folder and run the command below. It will run and check for values each 10 seconds and until you close the server. You can close with with the command "Ctrl + c" or similar. Make sure you removed "type": "module" from package.json for this.

cd scrap
node server

Simulate

First, make sure you have "type": "module" in your package.json. Then navigate to ./simulate folder for running some simple bet simulations. Then run the command below.

Inside 'data.js' should be an array of objects extracted from the server scrap data. 'entries.js' will just get the values from each entry.

cd simulate
node index

Built with

Puppeteer: Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol.

License

MIT

About

Web scraping with puppeteer for getting Crash game values

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published