# @sosnoob/crawlit

> Crawl structured dofus encyclopedia data and build your own app/API

Latest version **1.3.7** (published 2018-11-25) · CC BY-NC-SA 4.0 license · 0 weekly downloads

## Install

```sh
npm install @sosnoob/crawlit
pnpm add @sosnoob/crawlit
yarn add @sosnoob/crawlit
bun add @sosnoob/crawlit
```

Provides the command `crawlit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.7 |
| Published | 2018-11-25 |
| First published | 2018-11-25 |
| Weekly downloads | 0 |
| License | CC BY-NC-SA 4.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 935.2 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zakaria Rachedi |
| Maintainers | raczak |
| Keywords | dofus, dofus-touch, api, dofus api, dofus-touch api, dofus item, crawlit, dofapi, sosnoob |

## Links

- npm: https://www.npmjs.com/package/@sosnoob/crawlit
- Repository: https://github.com/raczak/crawlit-dofus-encyclopedia-parser
- Issues: https://github.com/raczak/crawlit-dofus-encyclopedia-parser/issues
- npm.io page: https://npm.io/package/@sosnoob/crawlit

## Dependencies (8)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [clui](https://npm.io/package/clui.md) ^0.3.6
- [jest](https://npm.io/package/jest.md) ^23.6.0
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [request](https://npm.io/package/request.md) ^2.88.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1
- [inquirer](https://npm.io/package/inquirer.md) ^5.1.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.2

## Recent versions

- 1.3.7 (latest) — 2018-11-25
- 1.3.6 — 2018-11-25

## README

# <a href="url"><img src="https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/favicon.ico" align="left" height="50" width="50" ></a>Crawlit - Dofus & Dofus-Touch encyclopedia parser - Build your own Dofus API 
[![sosnoob](https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/buildwithlove.png)](https://www.sosnoob.com)
[![sosnoob](https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/buymecoffee.png)](https://www.paypal.me/sosnoob)

[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Get+all+Dofus+%26+Dofus-Touch+encyclopedia+in+one+click+%21+Use+data+provided+by+the+tool+to+create+your+apps+and+APIs+%3AD&url=https://github.com/raczak/crawlit-dofus-encyclopedia-parser&via=sosnoobi&hashtags=sosnoob,DOFUSTouch,dofusbook,DOFUS,developers)

In order to respond to a need expressed by the community, I create an encyclopedia parser for `Dofus` available for : </br>
- `Windows`
- `OSX` 
- `Linux`

**Download** : [All versions are available here](https://github.com/raczak/crawlit-dofus-encyclopedia-parser/releases)


**:warning: Don't use the tool for more than 700 items per hour** (for Dofus-Touch).

Crawlit was built to be very light, it can run on almost every configurations.

In fact Crawlit is a tool :

- Developed by the dofus community, for the community
- **100% performance** : Developed to be very light
- Simple to use | Plug and use
- Resume parsing feature after errors (connection off / 429 error / ...)
- App packaged into **executable**, no need to install something
- English & French encyclopedia supported (french item & english item)

App launched           |  App at the end
:-------------------------:|:-------------------------:
![](https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/crawlit_API.gif)  |  ![](https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/crawlit6.JPG)

## JSON files also provided in the repository
In case you wan't directly the dofus JSON files, I oftenly upload up-to-date encyclopedia JSON in the `data/` folder.

## JSON format
An item result example
```json
{  
  "_id":"item ID",
  "name":"item name",
  "description":"item description.",
  "lvl":"item lvl",
  "type":"item type",
  "imgUrl":"image url of the item",
  "url":"Item's link",
  "stats":[ "many statistics line", "stat 2", ["..."], "stat n" ],
  "condition":[ "many conditions line", "condition 2", ["..."], "condition n" ],
  "set":{  
     "equipments":[itemId, itemId ...],
     "weapons":[itemId, itemId ...],
  }
}
```

## Getting Started

[With Npm] Install globally crawlit :

``` bash
npm install -g @sosnoob/crawlit
crawlit
```

[With github] Clone & access this repository locally :

``` bash
git clone https://github.com/raczak/crawlit-dofus-encyclopedia-parser.git
cd crawlit-dofus-encyclopedia-parser
```

Install dependencies with npm :

``` bash
npm install
```

**:warning: There is an issue with `npm start` on some CLI, in this case prefere use `node lib/app.js`.**

### [Optional] To build packaged app

If you want to generate packaged app (executable) with `pkg` dependency, you **MUST** install `zeit/pkg` in npm global context.  
Please follow [Pkg documentation](https://github.com/zeit/pkg) for troubleshooting.

``` bash
npm install -g pkg
```
- **in a terminal window** -> `npm run pkg-all` 

## Supported items
| Items       | state of progress        |
| ------------- |:-------------|
| `Equipment`     | 100 %  |
| `Weapon`    | 100 % |
| `Set` | 100 % |
| `Pet` | 100 % |
| `Mount` | 100 % |
| `Resource` | 100 % |
| `Consumable` | 100 % |
| `Recipe` | 25 % |
| `Classe` | 0 % |
| `Professions` | 0 % |
| `Bestiary` | 0 % |

## We also have done an API !
Visite the official non-official Dofus API : **[DOFAPI](https://dofapi.fr)**

## Technologies choice
Crawlit is build with full javascript : [NodeJs/Npm](https://nodejs.org/en/), javascript.

![](https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/node-js.png)

## Bug & Crash || Proposal ?
For proposal don't hesitate to create a pool request or for a bug/crash an issue. You can also make us aware on [bugs channel in discord](https://discord.gg/r6nEaHp).

## Discord
[Click here to join the sosnoob community on discord !](https://discord.gg/8rKmXDd)

[<img src="https://raw.githubusercontent.com/raczak/crawlit-dofus-encyclopedia-parser/master/assets/discord-Logo.jpg">](https://discord.gg/8rKmXDd)


## Documentation(dev)
[Access the wiki to understand the project and contribute to it](https://github.com/raczak/crawlit-dofus-encyclopedia-parser/wiki/Dev-Documentation-(English)). [There is also a french version of the documentation](https://github.com/raczak/crawlit-dofus-encyclopedia-parser/wiki/Dev-Documentation-(Français)) :smiley: ! 

## Join the dev Team ?
[Contact us on discord](https://discord.gg/8rKmXDd) (channel general or private message to theukid)

## Contributors

| [<img src="https://avatars2.githubusercontent.com/u/9281021?v=3&s=117" width="117px;"/><br /><sub><b>Zakaria RACHEDI</b></sub>](https://github.com/raczak) | [<img src="https://avatars0.githubusercontent.com/u/17069089?v=3&s=117" width="117px;"/><br /><sub><b>Le Corre Julien</b></sub>](https://github.com/Edoz77) | [<img src="https://avatars2.githubusercontent.com/u/24317552?v=3&s=117" width="117px;"/><br /><sub><b>Yannick Milanetto</b></sub>](https://github.com/yannick-milanetto)
| :---: | :---: | :---: |

---
_Source: https://npm.io/package/@sosnoob/crawlit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
