Giter Club home page Giter Club logo

skyblock-parser's Introduction

About

Work in progress!

skyblock-parser is a javascript library for processing Hypixel SkyBlock data. It provides several classes, utility functions and constants.

Note: If you don't need to interface with the Hypixel API yourself, it is easier to use The Slothpixel API - it provides the same functionality.

Installation

Node.js 12.0.0 or newer is required.

Run npm i -s skyblock-parser on your project folder.

Example usage

In the following example we use the node-fetch library to retrieve data from the Hypixel API and then use Profile class provided by skyblock-parse to process the data to a more readable form and then log uuid and player stats of each member to console.

const fetch = require('node-fetch');
const { Profile } = require('skyblock-parser');

const apiKey = '';  // Insert your Hypixel API key here
const profileId = '83eeafe88f68419a8192406efe69fd86';

(async () => {
  const api = await fetch(`https://api.hypixel.net/skyblock/profile?key=${apiKey}&profile=${profileId}`);
  const json = await api.json();
  const profile = await new Profile(json.profile);
  
  Object.keys(profile.members).forEach((uuid) => {
    const member = profile.members[uuid]
    console.log(member.uuid, member.stats)
  });
})();

History

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.