yahoo.search.dom (version 1.6, Tue Feb 27 16:27:58 MST 2007) | index /home/leif/hack/pysearch/yahoo/search/dom/__init__.py

`Base class for search results parsing
This package implements the interface and base class that should be
used for all parsers of the web results. It is used by the DOM parsers
that we provide as defaults.`

Package Contents

``

audio image local | myweb news site | term video web |

Classes

``

yahoo.search.parser.ResultParser(__builtin__.object)
  DOMResultParser

class DOMResultParser(yahoo.search.parser.ResultParser)
`` | `DomResultParser - Base class for Yahoo Search DOM result parsers This is a DOM specific parser that is used as a base class for all Yahoo Search result parsers. It obviously must implement the main entry entry point, parse_results().`

Method resolution order:
  DOMResultParser
  yahoo.search.parser.ResultParser
  __builtin__.object

Methods defined here:

parse_results(self, dom_object)
  `This is a simple DOM parser for all Yahoo Search services. It
  expects to find a top-level node named ResultSet. This is the main
  entry point for the DOM parser, and it requires a properly con-
  structed DOM object (e.g. using minidom).`

Methods inherited from yahoo.search.parser.ResultParser:

__init__(self, service, res_dict=<class 'yahoo.search.parser.ResultDict'>)

__iter__(self)

Data descriptors inherited from yahoo.search.parser.ResultParser:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

firstResultPosition
  `The first result position`

first_result_position
  `The first result position`

results
  `The list of all results`

service
  `The Search Web Service object for this results parser`

totalResultsAvailable
  `Total number of results for the query`

totalResultsReturned
  `The number of results returned`

total_results_available
  `Total number of results for the query`

total_results_returned
  `The number of results returned`

Data
`` |  | __author__ = 'Leif Hedstrom <leif@ogre.com>' __date__ = 'Tue Feb 27 16:27:58 MST 2007' __revision__ = '$Id: __init__.py,v 1.6 2007/02/28 05:20:11 zwoop Exp $' __version__ = '$Revision: 1.6 $'

Author
`` |  | Leif Hedstrom <leif@ogre.com>