home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Getting Data from the Web
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="James" data-source="post: 89165" data-attributes="member: 12681"><p>Hi to the MP development community,</p><p> </p><p>(this includes all plugin and addon developers too)</p><p></p><p>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.</p><p></p><p>It is template based so that site specific information can be stored in config files and new sites added without the need to recompile.</p><p></p><p>The interface is very simple:</p><p></p><p>The constructor takes a template, the typeof a IParserData class and any args for the IParserData class.</p><p>[CODE]</p><p> HtmlParser(HtmlParserTemplate template, Type dataType, params object[]dataArgs)</p><p>[/CODE]</p><p>The main method Parses a URL and returns how many times the template occurs on this site</p><p>[CODE]</p><p> int ParseUrl(HTTPRequest site);</p><p>[/CODE]</p><p>Then the data for a index it return by this method.</p><p>[CODE]</p><p> IParserData GetData(int index);</p><p>[/CODE]</p><p></p><p>I will include more detailed doc in the wiki, in a few days.</p><p></p><p>I'm very interested to know if this is useful and any suggestions for improvement, etc.</p><p></p><p>/James</p></blockquote><p></p>
[QUOTE="James, post: 89165, member: 12681"] 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. [CODE] HtmlParser(HtmlParserTemplate template, Type dataType, params object[]dataArgs) [/CODE] The main method Parses a URL and returns how many times the template occurs on this site [CODE] int ParseUrl(HTTPRequest site); [/CODE] Then the data for a index it return by this method. [CODE] IParserData GetData(int index); [/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Getting Data from the Web
Contact us
RSS
Top
Bottom