krosmaga

Krosmaga wrapper to get ranks


Keywords
krosmaga, card-game, wrapper, parsing, parser, parse, html, rank, ladder, place, player, game
License
ISC
Install
npm install krosmaga@1.0.6

Documentation

Transparent Krosmaga

Krosmaga Wrapper

Rank view of players from Krosmaga for Node JS !

Install

npm install krosmaga

Syntaxe

krosmaga.getUser( pseudo [, callback ])
krosmaga.getUserSeason( pseudo [, season [, callback ]])

Examples

const krosmaga = require("krosmaga")

// With callback
krosmaga.getUser("Ghom",console.log)

// With promise
krosmaga.getUser("Ghom")
	.then(console.log)
	.catch(console.error)

Return

{
    "global": {
        "position": 686,
        "elo": 1508,
        "win": 2519,
        "lose": 3108
    },
    "lastSeason": {
        "position": 180,
        "rank": 21,
        "win": 27,
        "lose": 4
    },
    "pseudo": "Ghom",
    "image": "https://s.ankama.com/www/static.ankama.com/web-avatar/1127.png",
    "description": "Ghom n'a pas encore rédigé de description personnalisée",
    "connection": "Dernière connexion : 17/05/2019",
    "inscription": "Inscrit depuis le 22/06/2013",
    "connectionTimestamp": 1560722400000,
    "inscriptionTimestamp": 1374444000000
}