1.1.1 • Published 5 years ago
@tibia-suite/scraper v1.1.1
@tibia-suite/scraper
A Lib to get infromation from tibia.com in your application directly from official webpage.
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/scraperUsage
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 testFeatures
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
}
]
}