Hi to the MP development community,
(this includes all plugin and addon developers too)
I have just re-built WebEPG from the ground up, including a new Html Parsing engine. I have tried to keep this engine as general as possible so that it can be re-used by all other plugin, etc that need to get data from html web pages.
It is template based so that site specific information can be stored in config files and new sites added without the need to recompile.
The interface is very simple:
The constructor takes a template, the typeof a IParserData class and any args for the IParserData class.
The main method Parses a URL and returns how many times the template occurs on this site
Then the data for a index it return by this method.
I will include more detailed doc in the wiki, in a few days.
I'm very interested to know if this is useful and any suggestions for improvement, etc.
/James
(this includes all plugin and addon developers too)
I have just re-built WebEPG from the ground up, including a new Html Parsing engine. I have tried to keep this engine as general as possible so that it can be re-used by all other plugin, etc that need to get data from html web pages.
It is template based so that site specific information can be stored in config files and new sites added without the need to recompile.
The interface is very simple:
The constructor takes a template, the typeof a IParserData class and any args for the IParserData class.
Code:
HtmlParser(HtmlParserTemplate template, Type dataType, params object[]dataArgs)
Code:
int ParseUrl(HTTPRequest site);
Code:
IParserData GetData(int index);
I will include more detailed doc in the wiki, in a few days.
I'm very interested to know if this is useful and any suggestions for improvement, etc.
/James