I like Rorexes find, while this is quick and dirty, I think his would be the
better solution.

On 4/24/06, elibol <[EMAIL PROTECTED]> wrote:
>
> let's see, first a little script to grab the data:
>
> var loadWiki = new XML();
>
> loadWiki.onLoad = function(success){
> trace(this);
> }
>
> loadWiki.load('http://en.wikipedia.org/wiki/Special:Search?search=parsing&fulltext=fulltext&sourceid=mozilla-search'<http://en.wikipedia.org/wiki/Special:Search?search=parsing&fulltext=fulltext&sourceid=mozilla-search%27>
> );
>
> The relevent part of the query:
>
> <!-- querying /search/enwiki/parsing?namespaces=0&offset=0&limit=20 -->
>
> <hr/><strong>Results 1-20 of 1928</strong><
> div style="text-align: center;"><strong>1</strong> <
> a 
> href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=20&amp;limit=20">2</
> a> <a 
> href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=40&amp;limit=20"
> >3</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=60&amp;limit=20"
> >4</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=80&amp;limit=20"
> >5</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=100&amp;limit=20"
> >6</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=120&amp;limit=20"
> >7</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=140&amp;limit=20"
> >8</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=160&amp;limit=20"
> >9</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=180&amp;limit=20"
> >10</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=200&amp;limit=20"
> >11</a> <a 
> >href="/w/index.php?title=Special:Search&amp;search=parsing&amp;fulltext=Search&amp;offset=20&amp;limit=20"
> ><span style='font-size: small'>Next</span> &
> #x00BB;</a> </div><ul><li style=
> "padding-bottom: 1em;"><a href="/wiki/Parse" title
> ="Parse">Parse</a><br/><span
>  style="color: green; font-size: small;">Relevancy: 100.0% -  - </span></li>
>
> <li style="padding-bottom: 1em;"><a href
> ="/wiki/Parsing" title="Parsing">Parsing</a><
> br/><span style="color: green; font-size: small;"
> >Relevancy: 95.0% -  - </span></li>
>
> <li style=
> "padding-bottom: 1em;"><a href="/wiki/Parse_table" title
> ="Parse table">Parse table</a><br/><
> span style="color: green; font-size: small;">Relevancy: 63.6% -  - </span></
> li>
>
> <li style="padding-bottom: 1em;"><a
>  href="/wiki/Shallow_parsing" title="Shallow parsing">Shallow parsing</
> a><br/><span style="color: green; font-size: small;"
> >Relevancy: 60.3% -  - </span></li>
>
> <li style=
> "padding-bottom: 1em;"><a href="/wiki/Parse_tree" title
> ="Parse tree">Parse tree</a><br/><
> span style="color: green; font-size: small;">Relevancy: 60.2% -  - </span></
> li>
> ...
> ...
> ...
>
> and so on,
>
> So you would look for the most significant pieces of this string, be it the 
> string 'Result' and grab every li tag there after to get the search result. 
> I'm pretty sure you could even throw it right into an html text if you got 
> the right tags. Just need to do some careful string parsing.
>
>
> And btw, I apologize, the google text editor is just no good =[
>
> Hope this helps,
>
> M.
>
> On 4/24/06, Guillermo Torres Troconis <[EMAIL PROTECTED]> wrote:
> >
> > How would you parse out these results?
> >
> >
> > On Apr 24, 2006, at 4:08 PM, elibol wrote:
> >
> > > Hmm, I don't know of the WSDL, but if worse comes to worse, you
> > > could always
> > > run a query by URI and parse out the results...
> > >
> > > M
> > >
> > > On 4/24/06, Guillermo Torres Troconis <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Does anyone know if there's a WSDL for Wikipedia, I want to be able
> > >> to show search results from wikipedia in my flash app. But I can't
> > >> find the available web service for it.
> > >>
> > >> thanks,
> > >>
> > >> g
> > >> _______________________________________________
> > >> Flashcoders@chattyfig.figleaf.com
> > >> To change your subscription options or search the archive:
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >> Brought to you by Fig Leaf Software
> > >> Premier Authorized Adobe Consulting and Training
> > >> http://www.figleaf.com
> > >> http://training.figleaf.com
> > >>
> > > _______________________________________________
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to