Class: FreeFire

FreeFire()

Class representing a free fire cog.

Constructor

new FreeFire()

Create a free fire cog.
Source:

Methods

(async) charactersScrap(language) → {Promise}

A method that gets characters with their description , image and abillities
Parameters:
Name Type Description
language string Language of description ('pt', 'es', 'id', 'ru', 'kr', 'th', 'ar')
Source:
Returns:
Promise object represents the array of characters
Type
Promise
Example
fire_tracker.charactersScrap().then(r=>{
      console.log(r);
   }).catch(e=>{
      console.log(e);
   });

(async) mediaScrap(type, platform) → {Promise}

A method that gets videos / wallpapers about Free Fire
Parameters:
Name Type Description
type string Type of media scraped (wallpapers,videos) If chosen (wallpapers) . You'll need this param
platform string The platform of the wallpaper (pc,mobile,pop,all)
Source:
Returns:
Promise object represents the array of videos / wallpapers
Type
Promise
Example

Example about scraping wallpapers

   fire_tracker.charactersScrap('wallpapers','all').then(r=>{
    console.log(r);
   }).catch(e=>{
    console.log(e);
   });

(async) weaponScrap(type, name) → {Promise}

A method that gets weapon info in Free Fire
Parameters:
Name Type Description
type string type of quantity of info scraped (all,specify,category)(not case sensitive) If chosen (specify or category) following param must be given :
name string name of weapon / name of category
Source:
Returns:
Promise object represents the object of weapon/weapons
Type
Promise
Examples

Example about scraping all weapons

   const fire = require('fire-tracker'),
         fire_tracker = new fire.FreeFire();
   fire_tracker.weaponScrap('all').then(r=>{
        console.log(r);
   }).catch(e=>{
        console.log(e);
   });

Example about scraping specific weapons

   fire_tracker.weaponScrap('specific','G18').then(r=>{
        console.log(r);
   }).catch(e=>{
        console.log(e);
   });