Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Player

    Join Date
    Jun 2011
    Location
    Ul'duh
    Posts
    356

    How to Call character info for web developers?

    Hi,

    I'm working on a website for my LS, and I'd like to be able to call character info. I don't see any XML pages to call from, or really anything. I know a lot of sites are doing it such as ffxivpro, but I don't see any documentation anywhere.

    Can anyone help please?

    Thanks,

    Astin
    (2)


    KissesLinkshell of Gysahl
    www.KissesLS.net

  2. #2
    Player

    Join Date
    Jun 2011
    Location
    Ul'duh
    Posts
    356
    bump,,,,,,,,,,,
    (0)


    KissesLinkshell of Gysahl
    www.KissesLS.net

  3. #3
    Player
    Aleczan's Avatar
    Join Date
    Aug 2011
    Location
    Ul'dah
    Posts
    535
    Character
    Aleczan Knighthill
    World
    Ragnarok
    Main Class
    Pugilist Lv 70
    Hope a dev or some other fan site developer would answer this. My enjin's signature is broken, would be great to get one of my own hosted on my server.
    (0)

  4. #4
    Player
    Coldfire's Avatar
    Join Date
    May 2011
    Location
    Gridania
    Posts
    1,130
    Character
    Nero Coldfire
    World
    Sargatanas
    Main Class
    Goldsmith Lv 50
    It's most likely done by analyzing the HTML-code for each characters lodestone site. You basically search the code for certain words or tags and then read the information from there. Is pretty simple but if SE changes the layout you have to update your method. Usually this is done at certain time intervals and not every time the site is loaded (so you don't get into trouble with SE :P )
    (1)

  5. #5
    Player

    Join Date
    Jun 2011
    Location
    Ul'duh
    Posts
    356
    So scraping?
    (0)


    KissesLinkshell of Gysahl
    www.KissesLS.net

  6. #6
    Player
    Coldfire's Avatar
    Join Date
    May 2011
    Location
    Gridania
    Posts
    1,130
    Character
    Nero Coldfire
    World
    Sargatanas
    Main Class
    Goldsmith Lv 50
    Web scraping, yes. For example you search for "Shield" and the next number between bold-tags is the shield level.
    (0)

  7. #7
    Player
    Lebannen's Avatar
    Join Date
    Mar 2011
    Location
    Gridania
    Posts
    239
    Character
    Lebannen Nox
    World
    Ragnarok
    Main Class
    Carpenter Lv 51
    would be cool if we get a service like the one you mentioned.
    (1)

  8. #8
    Player
    Coldfire's Avatar
    Join Date
    May 2011
    Location
    Gridania
    Posts
    1,130
    Character
    Nero Coldfire
    World
    Sargatanas
    Main Class
    Goldsmith Lv 50
    Had some free time and put together some code to fetch the data http://pastebin.com/6y7VtjDu
    It's written in ASP.NET and not very pretty :P
    As usual with stuff like this I'm not responsible if it blows up your server, but you are free to use, alter and distribute it.
    (1)

  9. #9
    Player

    Join Date
    Jun 2011
    Location
    Ul'duh
    Posts
    356
    I know like 0 c# though. Is it possible to give me an example in PHP? I can get the scraping part myself, but I don't understand how to go from a Character Name and server to a ID number that the website uses.
    (0)


    KissesLinkshell of Gysahl
    www.KissesLS.net

  10. #10
    Player
    Coldfire's Avatar
    Join Date
    May 2011
    Location
    Gridania
    Posts
    1,130
    Character
    Nero Coldfire
    World
    Sargatanas
    Main Class
    Goldsmith Lv 50
    You will have to use the lodestone character search for that. The ID is in the link to the character's subpages. I think sites like ffxivpro just scan through all the numbers to get all character data. But if you only need it for a small group of people or even just for yourself you can use the lodestone search and copy the IDs from there. Beware though that if you are logged in there will be no ID for your own page shown in the address.
    (1)

Page 1 of 2 1 2 LastLast