Python: module yahoo.search.dom.myweb

yahoo.search.dom.myweb (version 1.4, Thu Oct 27 10:47:35 PDT 2005) | index /home/leif/hack/pysearch/yahoo/search/dom/myweb.py

`DOM parser for MyWeb search results
Implement a simple DOM parser for the Yahoo Search Web Services
MyWeb and MyWeb2 search APIs.`

Modules
`` |  |
yahoo.search.dom |  |  |

Classes
`` |  | yahoo.search.dom.DOMResultParser(yahoo.search.parser.ResultParser) ListFolders ListUrls TagSearch UrlSearch
class ListFolders(yahoo.search.dom.DOMResultParser)
`` | `ListFolders - DOM parser for MyWeb Public Folders Each result is a dictionary populated with the extracted data from the XML results. The following keys are always available: Title - The title of the folder. UrlCount - The number of URLs stored in this folder. Example: results = ws.parse_results(dom) for res in results: print "%s [%d]" % (res.Title, res.UrlCount)`
| Method resolution order: ListFolders yahoo.search.dom.DOMResultParser yahoo.search.parser.ResultParser __builtin__.object Methods inherited from yahoo.search.dom.DOMResultParser: 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`
class ListUrls(yahoo.search.dom.DOMResultParser)
`` | `ListUrls - DOM parser for MyWeb Stored URLs Each result is a dictionary populated with the extracted data from the XML results. The following keys are always available: Title - The title of the folder. Summary - Summary text associated with the web page. Url - The URL for the web page. ClickUrl - The URL for linking to the page. Note - Any note the Yahoo! user has chosen to annotate the URL with. StoreDate - The date the URL was stored, unix timestamp format. Example: results = ws.parse_results(dom) for res in results: print "%s - %s" % (res.Title, res.Url)`
| Method resolution order: ListUrls yahoo.search.dom.DOMResultParser yahoo.search.parser.ResultParser __builtin__.object Methods inherited from yahoo.search.dom.DOMResultParser: 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`
class TagSearch(yahoo.search.dom.DOMResultParser)
`` | `UrlSearch - DOM parser for MyWeb2 Tag Search Each result is a dictionary populated with the extracted data from the XML results. The following keys are always available: Tag - The value of the tag. Frequency - The number of times the tag has been used publicly. IF the query is filtered by yahoo ID, and/or URL, it will return the number of times the tag has been used by that user (and/or on that URL). Date - The date the URL was stored, in unix timestamp format.`
| Method resolution order: TagSearch yahoo.search.dom.DOMResultParser yahoo.search.parser.ResultParser __builtin__.object Methods inherited from yahoo.search.dom.DOMResultParser: 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`
class UrlSearch(yahoo.search.dom.DOMResultParser)
`` | `UrlSearch - DOM parser for MyWeb2 URL search Each result is a dictionary populated with the extracted data from the XML results. The following keys are always available: Title - The title of the web page. Summary - Summary text associated with the web page. Url - The URL for the web page. ClickUrl - The URL for linking to the page. User - The Yahoo! ID of the last user to store the URL (or the user specified with the yahooid parameter). Note - Any note the Yahoo! user has chosen to annotate the URL with. Date - The date the URL was stored, in unix timestamp format. Tags - The tags associated with this URL.`
| Method resolution order: UrlSearch yahoo.search.dom.DOMResultParser yahoo.search.parser.ResultParser __builtin__.object Methods inherited from yahoo.search.dom.DOMResultParser: 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__ = 'Thu Oct 27 10:47:35 PDT 2005' __revision__ = '$Id: myweb.py,v 1.4 2005/10/27 18:07:59 zwoop Exp $' __version__ = '$Revision: 1.4 $'

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