trydis / FIFA-Ultimate-Team-Toolkit

FIFA Ultimate Team Toolkit
MIT License
233 stars 110 forks source link

FIFA 17 database of players #285

Closed bigdt21 closed 7 years ago

bigdt21 commented 8 years ago

I am looking to create a database of FIFA 17 players and their information (nation, club, league, etc.) and stats (pace, long passing, etc.). I've found the below API URL which returns all the relevant information, but only one page at a time (out of 600+ pages)

https://www.easports.com/fifa/ultimate-team/api/fut/item?page=1

Anyone have a better URL to use or way to modify this one to dump the whole thing or at least multiple pages?

robbrad91 commented 6 years ago

Sorry @k3lh4m, not bothered with it this year :(

k3lh4m commented 6 years ago

@Bradders591 No worries - It'll be a challenge for myself to get the working! :)

k3lh4m commented 6 years ago

For anyone reading this one wants to use I similar approach to the node js script that Bradders591 wrote, this missing model files would look something like this:

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const playerSchema = new Schema({
    commonName: String,
    firstName: String,
    lastName: String,
    name: String,
    headshotImgUrl: String,
    nation: String,
    clubName: String,
    clubBadgeImgUrl: String,
    leagueName: String,
    position: String,
    id: String,
    rating: Number,
    isGK: Boolean
});

const Player = mongoose.model('Player', playerSchema);

// make this available to our users in our Node applications
module.exports = Player;

I have missed out a lot of the attributes, just because I did not need them in my mongo db.

I hope this helps someone

ntaboada commented 6 years ago

Maybe is not the right place, but i want to let you know that i just published a NodeJS API/Wrapper to get data about FIFA 18 ProClubs mode: https://github.com/ntaboada/fifa-api-proclubs is the repo to you to try. Contributors are welcome!