PokemonData - PokeAPI Conversion Tool | Pokemon Database

Results 1 to 6 of 6
  1. #1
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    PokemonData - PokeAPI Conversion Tool | Pokemon Database

    PokemonData is a simple tool that converts the JSON Data from PokeAPI to data usable for a database.

    How it works
    The tool calls the API regarding the topic chosen and returns a JSON dataset, which is then parsed and converted to an SQL file. Open the terminal where PokemonData.exe is located and use it in the following way:

    Code:
    > PokemonData -c/-category <all/pokemon/berry/item/move/machine/evolution> [-limit <number>] [-offset <number>] [-l/-language <language>] [-v/-version <version>] [-nocache]

    / is used to indicate that one of those should be picked.
    <> is used to indicate a value.
    [] is used to indicate that this is optional.

    -c/-category: A category of what should be converted. All will convert evertying, but is not advised to use because of Error 429
    -limit: The amount of objects that should be converted. Only applied to the end-lists (huge lists) (DEFAULT: all)
    -offset: The offset of objects of where the conversion should start. (DEFAULT: 0)
    -l/-language: The language of text that should be returned, if possible. Check Languages. (DEFAULT: en)
    -v/-version: The game version of which data should be converted. Check Versions (DEFAULT: x-y)
    -nocache: Triggers the application to destroy all previous data and convert everything. (DEFAULT: false)


    Note: There's a lot of calls to be done, so the API will sometimes return error 429 (TOO MANY REQUESTS). All data parsed before that is cached and the tool will skip these calls to keep the API calls to a minimum.

    Used to make
    Newtonsoft.Json - JSON Parse tool
    Visual Studio 2015

    Important
    If you just want the data, please download the SQL link, as I do not want the API to suddenly get overloaded with calls. Everything is pre-converted and included in this thread because of this reason.
    The tool is not even near to perfect, but works effectively. If you wish to convert more, you are welcome to download the source, build some in and post your update here (or keep it for yourself).
    If you want to use the tool, but do not wish to re-compile it, download the binaries and make sure to keep the DLL in the same location as the tool.

    Links
    Binaries
    Source
    Create SQL

    Credits for others
    Bradley
    PokeAPI - The Pokemon RESTful API

    If there are any small bugs, I'm willing to fix them, but I'm not going to broaden its functionality on a whim. Naturally, you are welcome to edit it however you see fit.
    Last edited by Luxray; 11-04-17 at 03:53 PM.


  2. #2
    Merry Christmas Bradley is online now
    ModeratorRank
    Jan 2013 Join Date
    United KingdomLocation
    1,221Posts

    Re: PokemonData - PokeAPI Conversion Tool | Pokemon Database

    This is a fantastic release and may come handy in future reference for me & others thank you!

  3. #3
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: PokemonData - PokeAPI Conversion Tool | Pokemon Database

    Edit: Fixed bugs
    Last edited by Luxray; 11-04-17 at 12:41 AM.

  4. #4
    Apprentice ConcealedHeaven is offline
    MemberRank
    May 2013 Join Date
    19Posts

    Re: PokemonData - PokeAPI Conversion Tool | Pokemon Database

    Good Tool! I've personally coded my own system that scrapes, files, and insert directly into database and tables

  5. #5
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: PokemonData - PokeAPI Conversion Tool | Pokemon Database

    I will post an updated version of the tool with all the bug fixes later.

    - - - Updated - - -

    Fixed all bugs. Uploading new binaries and source now. Updated SQL will have to wait because of error 429. Will upload ASAP.

  6. #6
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: PokemonData - PokeAPI Conversion Tool | Pokemon Database

    Updated binaries, source and SQL a last time. SQL now includes table creation, as well as data.



Advertisement