GithubHelp home page GithubHelp logo

gryn010 / datafus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bot4dofus/datafus

0.0 1.0 0.0 46.43 MB

The Dofus database in a json file. Restful API for a lighter usage. Includes the python tool to build the database by sraping the website.

Home Page: https://lucberge.github.io/Datafus

License: MIT License

Python 100.00%

datafus's Introduction

Release Website Release License

Datafus

Datafus is a small python3 tool to build the dofus database by scrapping the website. The final databases is a JSON file.

Download the database

If you need the database in local for your project, you download it here :

Use the RESTFULL API

If you don't need the database in local, you can use the RESTFUL API setup on GitHub pages. Simply do a get request with the following url :

  • List all the items in the category :
https://lucberge.github.io/Datafus/{date}/{language}{category}

Exemple :

Get all the monsters : https://lucberge.github.io/Datafus/21.01.27/fr/monsters

  • Find an item from it's id :
https://lucberge.github.io/Datafus/{date}/{language}/{category}/{id}

You need to remove the s in the category value.

Exemple :

Get the monsters with a specific id: https://lucberge.github.io/Datafus/21.01.27/fr/monster/1047

File structure

  • monsters List of Item: List of monsters in the game
  • weapons List of Item: List of weapons in the game
  • equipments List of Item: List of equipments in the game
  • sets List of Item: List of sets in the game
  • pets List of Item: List of pets in the game
  • mounts List of Item: List of mounts in the game
  • consumables List of Item: List of consumables in the game
  • resources List of Item: List of resources in the game
  • ceremonial_items List of Item: List of ceremonial items in the game
  • sidekicks List of Item: List of sidekicks items in the game
  • idols List of Item: List of idols in the game
  • harnesses List of Item: List of harnesses in the game

Item structure

The following table show the feilds which exists or not for a given item.

✔️ The field is mandatory

⚫ The field is optionnal

❌ The field doesn't exists

Field Monster Weapon Equipment Set Pet Mount Consumable Resource Cremonial item Sidekick Idol Harnesse
url key ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
id ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
name ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
img ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
type ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
level ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
description ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
effects
conditions
characteristics ✔️ ✔️ ✔️ ✔️
resistances ✔️
craft ✔️
bonuses ✔️
items ✔️
set_bonuses ✔️
set_total_bonuses
evolutionary_effects
spells ✔️

Fields description

  • url String: Url of the item. Unique for each item.
"url":...
  • id Integer: Id of the item.
"id":...
  • name String: Name of the item.
"name":...
  • img String: Image url of the item.
"img":...
  • type String: Type of the item (Bow, Cereal, Ore, Beer...)
"type":...
  • level Integer (Monsters exclude): Level of the item from 1 to 200.
"level":...
  • level Tuple of Integer (Monsters only): Minimal and Maximal value of the monster from 1 to 200.
"level":[
  ...,
  ...
]
  • description String: Description of the item.
"description":...
  • effects List of String : List of string effects.
"effects":[
  ...,
  ...
]
  • conditions List of String : List of string conditions.
"conditions":[
  ...,
  ...
]
  • characteristics List of String: List of string characteristics.
"characteristics":[
  ...,
  ...
]
  • resistances List of String: List of string resistances.
"resistances":[
  ...,
  ...
]
  • craft List of Craft : How to craft the item.
"craft":[
  {
    "url":...,
    "quantity":...
  },
  {
    "url":...,
    "quantity":...
  },
  ...
]
  • bonuses List of String: List of string bonuses.
"bonuses":[
  ...,
  ...
]
  • items List of String: List of items url.
"items":[
  ...,
  ...
]
  • set_bonuses List of String: List of string set bonuses.
"set_bonuses":[
  ...,
  ...
]
  • set_total_bonuses List of String : List of string set total bonuses.
"set_total_bonuses":[
  ...,
  ...
]
  • evolutionary_effects List of String : List of string evolutionary effects.
"evolutionary_effects":[
  ...,
  ...
]
  • spells List of String: List of string spells.
"spells":[
  ...,
  ...
]

datafus's People

Contributors

lucberge 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.