@tibia-suite/scraper

1.1.1 • Public • Published

@tibia-suite/scraper

A Lib to get infromation from tibia.com in your application directly from official webpage.

js-standard-style Version License

Idea

This is a JavaScript lib which works as a webscraper to get information from Tibia

The main idea was get Inforamtion about characters. But, right now I'm working in more elements.

Install

npm install --save @tibia-suite/scraper

Usage

By Feature

const { getCharacter } = require('@tibia-suite/scraper')

getCharacter('Character Name').then((character) => {
  //
})

Whole Package

const tibia-scraper = require('@tibia-suite/scraper')

tibia-scraper.getCharacter('Character Name').then((character) => {
  //
})

Lints & Tests

npm run lint
npm run test

Features

getCharacter

  • getCharacter(characterName):
{
  characterInfo: {
    name,
    title,
    sex,
    vocation,
    level,
    achievementPoints,
    world,
    residence,
    lastLogin,
    accountStatus
  },
  achievements: [],
  deaths: [{
    date,
    description
  }],
  accountInfo: {
    loyaltyTitle,
    created
  },
  characters: [{
    name,
    world
  }]
}

getWorlds

  • getWorlds:
{
  worlds: [{
    world,
    online,
    location,
    pvpType,
    additionalInfo,
  }],
  tournamentWorlds: [{
    world,
    online,
    location,
    pvpType,
    additionalInfo,
  }]
}

getWorld

  • getWorld(worldName):
{
  worldInfo: {
    status,
    playersOnline,
    onlineRecord,
    creationDate,
    location,
    pvPType,
    worldQuestTitles,
    battlEyeStatus,
    gameWorldType
  },
  onlineCharacters: [{
    name,
    level,
    vocation
  }]
}

getGuild

  • getGuild(guildName):
{
  guildInfo
  members: [{
    joined,
    level,
    name,
    nick,
    rank,
    status,
    vocation,
  }],
  invitations: [{
    name,
    invitationDate,
  }]
}

getGuilds

  • getGuilds(worldName):
{
  guilds: [
    {
      image,
      name,
      description
    }
  ]
}

Package Sidebar

Install

npm i @tibia-suite/scraper

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

27.6 kB

Total Files

23

Last publish

Collaborators

  • joseglego