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
MediaPortal 1 Plugins
Help getting started - web scraper joox
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="nabbster" data-source="post: 179287" data-attributes="member: 18601"><p>Hi guys got loads of questions as i have never coded a plugin before have had some vb6 experience and i am using visual studio 2005 for this plugin - but i have very limited knowledge of this.</p><p></p><p>1, is visual studio 2005 ok for this plugin?</p><p></p><p>2, i have some code that will return via a webbrowser control the links on any given web page as follows:</p><p></p><p>[code]Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click</p><p> Dim i As Short</p><p> </p><p> For i = 0 To WebBrowser1.Document.DomDocument.links.Length - 1</p><p> If InStr(1, WebBrowser1.Document.DomDocument.links.Item(i).href, "http://") = 1 Then</p><p> List1.Items.Add(WebBrowser1.Document.DomDocument.links.Item(i).href)</p><p> End If</p><p> Next i</p><p>End Sub[/code]</p><p></p><p></p><p>page source looks like this: <a href="./cat/55/id/1585274">Stargate 906</a><br /></p><p>my code returns this: <a href="http://joox.net/cat/2/id/1585274" target="_blank">http://joox.net/cat/2/id/1585274</a></p><p></p><p>how would i get the link but also the category name so the links provided are recognizable i.e as in the source above </p><p><a href="http://joox.net/cat/2/id/1585274" target="_blank">http://joox.net/cat/2/id/1585274</a> - Displayed = "Stargate 906"</p><p></p><p>3, after loads of googleing and research i have noticed that other web-scrap plugins have an xml front-end with the Gui layout to links on the desired web page. but once a link is clicked in media portal the results are displayed in media portal, how is this done? are the results loaded into strings, filtered and displayed with some sort of output command or is the window that displays the results a further xml written live in the background?.</p><p></p><p>i hope this is not to much to ask i am sure with a little help i can do this but in order to do so i need to understand the concept fully first then i can start with some serious coding and probably some more exacting questions. just need a push start to get going.</p><p></p><p>thanks in advance guys</p></blockquote><p></p>
[QUOTE="nabbster, post: 179287, member: 18601"] Hi guys got loads of questions as i have never coded a plugin before have had some vb6 experience and i am using visual studio 2005 for this plugin - but i have very limited knowledge of this. 1, is visual studio 2005 ok for this plugin? 2, i have some code that will return via a webbrowser control the links on any given web page as follows: [code]Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click Dim i As Short For i = 0 To WebBrowser1.Document.DomDocument.links.Length - 1 If InStr(1, WebBrowser1.Document.DomDocument.links.Item(i).href, "http://") = 1 Then List1.Items.Add(WebBrowser1.Document.DomDocument.links.Item(i).href) End If Next i End Sub[/code] page source looks like this: <a href="./cat/55/id/1585274">Stargate 906</a><br /> my code returns this: [url]http://joox.net/cat/2/id/1585274[/url] how would i get the link but also the category name so the links provided are recognizable i.e as in the source above [url]http://joox.net/cat/2/id/1585274[/url] - Displayed = "Stargate 906" 3, after loads of googleing and research i have noticed that other web-scrap plugins have an xml front-end with the Gui layout to links on the desired web page. but once a link is clicked in media portal the results are displayed in media portal, how is this done? are the results loaded into strings, filtered and displayed with some sort of output command or is the window that displays the results a further xml written live in the background?. i hope this is not to much to ask i am sure with a little help i can do this but in order to do so i need to understand the concept fully first then i can start with some serious coding and probably some more exacting questions. just need a push start to get going. thanks in advance guys [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Help getting started - web scraper joox
Contact us
RSS
Top
Bottom