def __init__(self, q, start=<NUM_LIT:1>, count=<NUM_LIT:10>, service=YAHOO_SEARCH, context=None, <EOL>wait=<NUM_LIT:10>, asynchronous=False, cached=True):
self.query = q<EOL>self.service = service<EOL>if cached:<EOL><INDENT>cache = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>cache = None<EOL><DEDENT>url = "<STR_LIT>"<EOL>if service == YAHOO_SEARCH and context == None : url += "<STR_LIT>"<EOL>if service == YAHOO_SEARCH and context != None : url += "<STR_LIT>"<EOL>if service == YAHOO_IMAGES   :  url += "<STR_LIT>"<EOL>if service == YAHOO_NEWS     :  url += "<STR_LIT>"<EOL>if service == YAHOO_SPELLING :  url += "<STR_LIT>"<EOL>arg = urllib.urlencode((("<STR_LIT>", YAHOO_ID), <EOL>("<STR_LIT>", q),<EOL>("<STR_LIT:start>", start),<EOL>("<STR_LIT>", count),<EOL>("<STR_LIT>", unicode(context))))<EOL>url += arg<EOL>URLAccumulator.__init__(self, url, wait, asynchronous, cache, "<STR_LIT>")<EOL>
Searches Yahoo for the given query.

        By default, return cached results whenever possible.
        Otherwise, go online and update the local cache.
        The number of results is limited to count and starts at the given index.

        The returned results depend on the service used: 
        web pages, images, news, spelling suggestion or contextual links.