User talk:Magill/Sandbox-4

From Lotro-Wiki.com
Jump to navigation Jump to search

I don't know if this can be implemented via this wiki, but... (pulling data from data.lotro.com and lorebook.lotro.com to update databases here.)

If you are registered with one of the Devs, you can get access to "data.lotro.com" which allows you to grab the actual info for characters (and icons and other stuff)... in more-or-less real-time... same update cycle as "my.lotro.com"

You need to ask for an API key. Send a PM to one of the Devs (Duwis) with your forum userid, [not your account (mine is valamar)] ... or at least that is how it worked before.

Docs:

          http://lorebook.lotro.com/wiki/Data.lotro.com_Usage_Guide

Info on getting an API key is in the begining of the article.

And looking at some of the "very recent" forum notes it appears the interface (data.lotro.com) was just updated so it is current as of March 2011.

         http://forums.lotro.com/showthread.php?386946-data.lotro.com-updated-with-Update-2-data/page3

Looks like Duwis is "the man in charge" now.

I use it indirectly most of the time via LOTROSTER. Which is Kinship oriented to grab all the stats for a kin.

As I recall, it is not a big deal to use... simply a HTML/SOAP interface. I haven't played with it for ages now.

But:

          Format: /{DEVELOPER_NAME}/{API_KEY}/charactersheet/w/{WORLDNAME}/c/{CHARACTERNAME}/

still is correct.

    Yes, this does pull the data for my hunter: 
           "http://data.lotro.com/valamar/a8ca0c5de7c466ecdd8e7f2df1d610ea/charactersheet/w/Gladden/c/Valamar/"> call valamar</a>
    But doesn't do anything with the XML data.. you have to parse it out.

(And I you are wiling to write a parsing routine, I'd love it... I just never got around to doing it.)

It seems that lorebook.lotro.com is itself a "media wiki" and there exist tools to collect stuff from it... namely all of the missing icons and etc.

http://forums.lotro.com/showthread.php?332112-List-of-IDs-for-all-items-from-data.lotro.com

On 14 May 2011, Dalthyn wrote:

Sorry, I completely forgot to send you my code while I was at work today. Anyway, no need to reinvent the wheel, and no need to do any scraping, as the Lorebook is just a mediawiki and hence you can use the standard Mediawiki API to do this. There should be a MW API implementation already out there in your language of choice. Then just use http://lorebook.lotro.com/api.php as the API URL and read anything you want. I do also have some code that I wrote to parse the tooltip files from the Lorebook and create a CSV of all items w/ names, IDs, and stats, plus an extra text field with any proc effects. If this is useful I'll try my darnedest to remember next time at work, but I am a total scatterbrain.