Code Monkey home page Code Monkey logo

kronos-wow-guild-fetch's Introduction

Kronos Wow Guild Fetch

Circle CI Stories in Ready Codacy Badge

Description

Fetches data from the Twinstar armory and send the data in Firebase. It is meant to be used as a daily task to provided recent enough data. Since the armory data isn't changing very quickly, it doesn't need to be collected in real-time to be used efficiently.

Structure

The project will be placed in lib/ with individual modules for each logical part. It will be divided as follow:

lib/models/
  • character.js
  • profession.js
  • reputation.js
  • item.js
  • bosskill.js
lib/scraper/
  • index.js
lib/app/
  • index.js
  • guild.js

Data Fetch

The data will be taken from those four pages, each returning XML with all the corresponding information.

Get list of members :
  • guild-info.xml?r=Realm&gn=Guild+Name
Get character profession :
  • character-sheet.xml?r=Realm&cn=Character+Name&gn=Guild+Name
Get character reputation :
  • character-reputation.xml?r=Realm&cn=Character+Name&gn=Guild+Name
Get character activity :
  • character-feed-data.xml?r=Realm&cn=Character+Name&gn=Guild+Name&full=true

Data Model

The data placed in firebase will be as follow:

{
    "Guild Name": {
        "members": {
            "charactername": { "level": "level", "timestamp": "timestamp" }
        },
        "ex-members": {
            "charactername": { "level": "level", "timestamp": "timestamp" }
        }
        "professions": {
            "profession 1": {
                "charactername": "level"
            }
        },
        "reputation": {
            "faction": {
                "charactername": "reputation"
            }
        },
        "items": {
            "charactername": [{
                "itemid": { "itemname": "itemname", "dateobtained": "dateobtained" }
            }]
        },
        "bosskill": {
            "charactername": [{
                "bossid": { "bossname": "bossname", "datekilled": "datekilled" }
            }]
        }
    }
}

kronos-wow-guild-fetch's People

Contributors

guillaumerochat avatar

Watchers

 avatar

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.