Scrap

scrap.exe is a command line tool which can be used to test scrapers written for xbmc. It can be found on the svn in ( https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/9.04_Babylon-linux-osx-win32/XBMC/tools/Scrap/ ).

Background
Since we wanted to do things in a general manner in order to not tie ourselves to only one backend per content type we came up with this nifty little tool to tackle the challenge. This is a scraper parser tool, basically it is a regular expression parser combined with a with a XML parser. So, if you do not know Regular Expressions (RegEx) and/or XML, I foresee new stuff to be learned in your near future.

Usage
The following arguments have to be passed to scrap: scrap.exe scraper.xml searchstring [function] Example: scrap.exe imdb.xml "Fight Club"


 * scraper.xml: The scraper e.g. imdb.xml
 * searchstring: The movie filename or directory name e.g. "Fight Club"
 * function: This is an optional argument. e.g. GetDetails

Download
Download the following two files and place them in the same directory. https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/9.04_Babylon-linux-osx-win32/XBMC/tools/Scrap/scrap.exe https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/9.04_Babylon-linux-osx-win32/XBMC/tools/Scrap/libcurl.dll

Important note
This tool is out of date, and no longer maintained (the original author lost the source code to his updated build by accident), but it still mostly works. A known bug is that it does not clean correctly the expressions, so if you do not include noclean="1" etc. in your code, behavior of scrap.exe may be different to XBMC. You MUST do a proper test in XBMC prior to accepting a scraper code as correct.