HighDots Forums  

OT: Yahoo Search API

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss OT: Yahoo Search API in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bregent
 
Posts: n/a

Default OT: Yahoo Search API - 11-07-2005 , 01:19 PM






Has anyone successfully implemented a search script with Yahoo?s search API,
preferably using ASP/VB?

I am currently using the google API implemented with the Digital Point search
tool (http://www.digitalpoint.com/tools/search/ ) but it stopped working on one
of my sites. For some reason, the request is being blocked.

For this reason I would like to eliminate the middle layer (digital point) and
access the api?s directly, but my host does not (that I know of) have any SOAP
tools available.

So I am looking at Yahoo API?s which uses REST and doesn?t require any special
host applications. Creating the query is simple enough, but I don?t know what
to do with the xml doc that gets returned. I have no experience with xml. Yahoo
has some samples, but none for ASP. They do have a php example, but that
returns this error:
Call to undefined function: domxml_open_mem()
from this line:
if (!$dom = domxml_open_mem($xml,DOMXML_LOAD_PARSING,$error)) {

So I?m guessing that my host does not have the necessary library installed.

Does anyone know what I need to ask my host to install or?. Are their any DW
extensions that will allow me to manage the xml doc that yahoo api returns?
Thanks folks.



Reply With Quote
  #2  
Old   
bregent
 
Posts: n/a

Default Re: OT: Yahoo Search API - 11-07-2005 , 07:55 PM






If it helps at all, here's a sample search string:

http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&query=
coach&results=2&site=soccer.com

You can see the xml returned to the browser. I need to find a way to format
the xml into an html search result page. Any pointers are appreciated. Thanks
in advance.


Reply With Quote
  #3  
Old   
bregent
 
Posts: n/a

Default Re: OT: Yahoo Search API - 11-07-2005 , 10:59 PM



"bregent" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
If it helps at all, here's a sample search string:


http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&query=
coach&results=2&site=soccer.com

You can see the xml returned to the browser. I need to find a way to
format
the xml into an html search result page. Any pointers are appreciated.
Thanks
in advance.
OK, I got things working with Yahoo search API. I'll post the solution once
I get things cleaned up a bit. I'll also probably have a few xml questions.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.