Giter Club home page Giter Club logo

dofus-scraper's Introduction

dofus-scraper

An open-source Dofus encyclopedia scraper. Scrape your desired encyclopedia categories and save it to your configured database.

Contributing

The most important categories of the encyclopedia have been scraped, if you feel like some information about items are missing, feel free to open an issue or contribute.

Modes

The 'MODE' environment variable is configurable in the following modes.

existing - the scraper will look for existing .json files.
new - the scraper will fetch the newest data.

Usage

Create a .env file in the root of your project, a typical .env should look like this. You can also copy the contents of the .env.example file in the root directory.

DB_TYPE=mongodb
HOST=localhost
PORT=27017
DB_NAME=dofus-scraper
MODE=existing

However, this project is using TypeORM, so the use of database is to your preference. When your .env is configured, run one of the following commands to start the scraping.

npm run existing
npm run new

Example

Scraping

TODO

  • Equipment
  • Sets
  • Weapons
  • Resources
  • Pets
  • Ceremonial items
  • Mounts
  • Consumables
  • Bestiary
  • Idols

Less important

  • Professions
  • Classes
  • Sidekicks
  • Haven bags
  • Harnesses

License

MIT

dofus-scraper's People

Contributors

cornayy avatar dependabot[bot] avatar ingles98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ingles98 githork

dofus-scraper's Issues

Error fetching

When I run
npm run new

I can select the type of information to download. However when I click something like 'equipment' I get the error:
Error fetching: https://www.dofus.com/en/mmorpg/encyclopedia/equipment?size=96

I can visit the website on my browser. I'm on Windows 10.

Also, its unclear to me where it saves the data if I run
npm run existing
which is successful. It just says "saving to database" and I'd like a .json

Thanks for any help

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.