Skip to content

This is a quick scrape of https://gbf.wiki/Character_Tier_List/Gamewith/Ratings that returns all characters with their 1-10 rating as a JSON object. You can use the db file directly or hit the API directly here: https://granblue-rating-api.herokuapp.com/characters

Notifications You must be signed in to change notification settings

Daelso/granblue-character-ratings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title: Granblue Character Ratings API and Scraper

badge made-with-javascript Express.js

Table of Contents

Description:

This is a WIP, at the moment it scrapes character names and ratings into a JSON object, the data is scraped from here: https://gbf.wiki/Character_Tier_List/Gamewith/Ratings -- A big thanks to the wiki contributers for keeping great up to date data. Currently you can access this in API form here: https://granblue-rating-api.herokuapp.com/characters - If you need to regenerate or update the JSON, clone this and uncomment the scraper portion to regnerate the file.

RapidAPI Link: https://rapidapi.com/daelso/api/granblue-fantasy-tier-list

End Points:

https://granblue-rating-api.herokuapp.com/scrape - This populates and updates our JSON file on command or once a day if left alone.

https://granblue-rating-api.herokuapp.com/characters - Get all characters and ratings

https://granblue-rating-api.herokuapp.com/characters/Zeta - Will return all entries for a specific character, first letter capitalization does not matter, will automatically be converted i.e zeta => Zeta

Sample Data

{
      "id": 2,
      "name": "Abby",
      "rating": "9.2"
    },
    {
      "id": 3,
      "name": "Abby (Promo)",
      "rating": "7.0"
    },
    {
      "id": 4,
      "name": "Agielba",
      "rating": "8.5"
    },

Full data can be found the JSON file.

Installation Instructions:

This requires express.js, node.js, cheerio, nodemon and axios. Open the terminal and begin with npm init followed by npm i to hopefully automatically install all required dependencies.

Run the program by opening your terminal in the main folder and typing npm start which requires nodemon (you should probably globally install it). You may want to run nodemon --ignore 'db.json' to stop nodemon restarting constantly due to the writefile.

Usage:

To create a JSON object of granblue characters and their associated rating. Will eventually be turned into an API for discord bot to query.

Contributing:

Want to contriubte? Here's the guidelines: None at the moment!

License:

This application is covered under the MIT license.

My Github Account:

Click here: https://github.com/Daelso

Questions:

Feel free to DM me here

About

This is a quick scrape of https://gbf.wiki/Character_Tier_List/Gamewith/Ratings that returns all characters with their 1-10 rating as a JSON object. You can use the db file directly or hit the API directly here: https://granblue-rating-api.herokuapp.com/characters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published