Giter VIP home page Giter VIP logo

heroes-api's Introduction

HeroesFire API (WEB CRAWLER)

Build Status

HeroesFire doesn't have an official API. This project is a simple web crawler that collects information from heroesfire.com. User could retrieve data of guides, hero stat and etc.

DEMO URL: https://heroesfire.herokuapp.com/

###Guide:

Get all the guides of one hero by name

Get /api/guide/get/all/:name

Response

http://heroesfire.herokuapp.com/api/guide/all/valla

Status: 200 OK

[
{
"url": "/hots/guide/equinoxs-valla-guide-24",
"votes": "286",
"date": "December 21, 2015"
},
{
"url": "/hots/guide/now-i-am-the-hunter-valla-guide-revised-461",
"votes": "54",
"date": "April 3, 2016"
},
{
"url": "/hots/guide/hungering-arrow-max-dps-alternate-multi-shot-build-4133",
"votes": "21",
"date": "August 20, 2015"
},
.....
]

Get guides sorted by votes

Get /api/guide/get/all/:name?sort=votes

http://heroesfire.herokuapp.com/api/guide/all/li-ming?sort=votes

Get guides sorted by date

Get /api/guide/get/all/:name?sort=date

http://heroesfire.herokuapp.com/api/guide/all/li-ming?sort=date

Get detail of one guide by url

Get /api/guide/get?url='url'

Response

http://heroesfire.herokuapp.com/api/guide/get?url=/hots/guide/chubbsz-li-li-guide-leoric-release-1296

Status: 200 OK

{
"title": "ChubbsZ Li Li Guide (Leoric Release)",
"date": "Aug 16, 2015",
"vote": "84",
"author": "ChubbsZ",
"skills": [
{
"level": "Level 1",
"skill": "conjurers-pursuit"
},
{
"level": "Level 4",
"skill": "mass-vortex"
},
{
"level": "Level 7",
"skill": "the-good-stuff"
},
{
"level": "Level 10",
"skill": "jug-of-1000-cups-talent"
},
{
"level": "Level 13",
"skill": "surging-winds"
},
{
"level": "Level 16",
"skill": "two-for-one"
},
{
"level": "Level 20",
"skill": "kung-fu-hustle"
}
],
"threats": [
"gazlowe",
"nazeebo",
"nova",
"rehgar",
...
]

}

Get all the guides

Get /api/guide/all/

Response

http://heroesfire.herokuapp.com/api/guide/all

Status: 200 OK

{
{
hf_id: 1892,
name: "xul",
guide: {
url: "/hots/guide/xul-the-responder-4-build-in-depth-guide-10020",
votes: 30,
date: "2016-03-09"
}
},
{
hf_id: 1892,
name: "xul",
guide: {
url: "/hots/guide/quot-preserve-the-balance-always-quot-xul-guide-9999",
votes: 35,
date: "2016-03-04"
}
},
}

Get all the guides sort by date

Get /api/guide/all?sort=date

Response

http://heroesfire.herokuapp.com/api/guide/all?sort=date Status: 200 OK

{
{
hf_id: 2344,
name: "varian",
guide: {
url: "/hots/guide/a-guide-to-varian-patch-22-7-12609",
votes: 20,
date: "Yesterday"
}
},
{
hf_id: 879,
name: "rehgar",
guide: {
url: "/hots/guide/rehgar-the-ultimate-gladiator-zuljin-8889",
votes: 33,
date: "2017-01-14"
}
}

Get basic stat of a hero by name:

Get /api/stat/get?name='name'

Response

https://heroesfire.herokuapp.com/hero/get?name=valla

Status: 200 OK

{

    "name": "Valla",
    "description": "Valla witnessed the ferocity of hellspawn firsthand as the demons ravaged her village and left her for dead. Now, with no people to call her own, her only allegiance is to her cause: to rid Sanctuary of the demonic filth corrupting its lands. She also likes long walks on the beach, puppies, and crossbows.",
    "Damage": "9",
    "Utility": "1",
    "Survivability": "4",
    "Complexity": "3",
    "type": "Assassin",
    "images": 

[

    "http://us.battle.net/heroes/static/images/heroes/skins/thumbnails/valla_demonHunter.jpg?v=58-82"

],
"reviews": 

    [
        { }
    ]

}

Get basic stats of all the heroes:

Get /api/stat/get/all

Response

Status: 200 OK


{

    "name": "Li-Ming",
    "description": "It’s a generally agreed upon fact of life among the denizens of Sanctuary that wizards and magical mayhem are never far apart. Although she understands people’s concerns, Li-Ming is entirely unapologetic for the destruction in her wake. She delights in unleashing devastating spells on her foes from afar, then teleporting away to frustrate her enemies’ attempts at striking back. Small minds may fear this kind of power, but Li-Ming wields the arcane forces of the universe with confidence and unmatched skill.",
    "Damage": "10",
    "Utility": "1",
    "Survivability": "3",
    "Complexity": "7",
    "type": "Assassin",
    "images": 

[

    "http://us.battle.net/heroes/static/images/heroes/skins/thumbnails/li-ming_rebelliousWizard.jpg?v=58-82"

],
"reviews": 

    [
        { }
    ]

},
{

    "name": "Gazlowe",
    "description": "Upon first glance, few would think of the diminutive Gazlowe as a fighter, but what he lacks in height, he more than makes up for in mechanical cunning. The newest mechanical exoskeleton he's been working on for example is an especially effective war machine—when it's working.",
    "Damage": "5",
    "Utility": "6",
    "Survivability": "5",
    "Complexity": "6",
    "type": "Specialist",
    "images": 

[

    "http://us.battle.net/heroes/static/images/heroes/skins/thumbnails/gazlowe_bossOfRatchet.jpg?v=58-82"

],
"reviews": 

    [
        { }
    ]

},

....

heroes-api's People

Contributors

hnaoto avatar

Watchers

 avatar  avatar

heroes-api's Issues

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.