Log in

Difference between revisions of "LHpi"

(LHpi is LordHelmchen's price import lua scripts and library for Magic Album)
 
Line 1: Line 1:
LHpi is LordHelmchen's price import library and sitescripts for Magic Album.
+
LHpi is [[User:LordHelmchen|LordHelchen's]] price import library and sitescripts for Magic Album.
  
 
LHpi is a collection of lua scripts to be used by Magic Album, but is '''''not''' part of Magic Album and thus updated and supported seperately''.
 
LHpi is a collection of lua scripts to be used by Magic Album, but is '''''not''' part of Magic Album and thus updated and supported seperately''.
  
 
Discuss, ask for help and leave feedback at the [http://www.slightlymagic.net/forum/viewtopic.php?f=32&t=8174 corresponding Forum Thread].
 
Discuss, ask for help and leave feedback at the [http://www.slightlymagic.net/forum/viewtopic.php?f=32&t=8174 corresponding Forum Thread].
==Sitescripts==
 
The sitescripts are the actual price import scripts, written in lua. They use the [[Magic Album Lua API]] and [[#the LHpi library]] to query and parse a website and import the price information into Magic Album. Most of the program logic is contained in the library, so the sitescript needs to hold only site-specific information and a few functions that are not easily generalizable.
 
 
Sitescripts will need to provide
 
* a table of supported sets with language and url infix fields
 
* a table of supported languages with url infix field
 
* a function to build urls
 
* a function to parse the html raw data into data fields via regular expressions (and the regex itself)
 
* optionally, it can also provide
 
** functions for site specific data manipulation, in case the site has some strange formatting the library does not understand
 
** a one-to-one name map for names that differ between the site and Magic Album's database
 
** tables to map card names to picture versions, in case the one-to-one map and LHpi's defaults are not sufficient
 
** a table with expected card count numbers for LHpi's sanity checks.
 
===magicuniverse.de===
 
===mtgmintcard.com===
 
===magic.tcgplayer.com PriceGuide===
 
===trader-online.de===
 
==The LHpi Library==
 
The LHpi library is a lua script that uses the [[Magic Album Lua API]] and can be used by LHpi sitesccripts.
 
Updated for Magic Album 1.5.2.264
 

Revision as of 16:05, 10 April 2013

LHpi is LordHelchen's price import library and sitescripts for Magic Album.

LHpi is a collection of lua scripts to be used by Magic Album, but is not part of Magic Album and thus updated and supported seperately.

Discuss, ask for help and leave feedback at the corresponding Forum Thread.