-
Notifications
You must be signed in to change notification settings - Fork 26
/
AdvancedHTMLParser.xpath.expression.html
85 lines (78 loc) · 6.18 KB
/
AdvancedHTMLParser.xpath.expression.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html ><head ><title >Python: module AdvancedHTMLParser.xpath.expression</title>
<meta charset="utf-8" />
</head><body bgcolor="#f0f0f8" >
<table cellpadding="2" width="100%" border="0" cellspacing="0" summary="heading" >
<tr bgcolor="#7799ee" >
<td valign="bottom" > <br />
<font color="#ffffff" face="helvetica, arial" > <br /><big ><big ><strong ><a href="AdvancedHTMLParser.html" ><font color="#ffffff" >AdvancedHTMLParser</font></a>.<a href="AdvancedHTMLParser.xpath.html" ><font color="#ffffff" >xpath</font></a>.expression</strong></big></big></font></td><td align="right" valign="bottom" ><font color="#ffffff" face="helvetica, arial" ><a href="AdvancedHTMLParser.html" >index</a></font></td></tr></table>
<p ><tt >Copyright (c) 2019 Timothy Savannah under terms of LGPLv3. All Rights Reserved.<br />
<br />
See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.<br />
<br />
See: https://github.com/kata198/AdvancedHTMLParser for full information<br />
<br />
<br />
xpath.expression.py - Module defines some types and features related to expressions</tt></p>
<p >
<table cellpadding="2" width="100%" border="0" cellspacing="0" summary="section" >
<tr bgcolor="#aa55cc" >
<td colspan="3" valign="bottom" > <br />
<font color="#ffffff" face="helvetica, arial" ><big ><strong >Modules</strong></big></font></td></tr>
<tr ><td bgcolor="#aa55cc" ><tt > </tt></td><td > </td>
<td width="100%" ><table width="100%" summary="list" ><tr ><td width="25%" valign="top" ><a href="copy.html" >copy</a><br />
</td><td width="25%" valign="top" ></td><td width="25%" valign="top" ></td><td width="25%" valign="top" ></td></tr></table></td></tr></table><p >
<table cellpadding="2" width="100%" border="0" cellspacing="0" summary="section" >
<tr bgcolor="#ee77aa" >
<td colspan="3" valign="bottom" > <br />
<font color="#ffffff" face="helvetica, arial" ><big ><strong >Classes</strong></big></font></td></tr>
<tr ><td bgcolor="#ee77aa" ><tt > </tt></td><td > </td>
<td width="100%" ><dl >
<dt ><font face="helvetica, arial" ><a href="__builtin__.html#object" >__builtin__.object</a>
</font></dt><dd >
<dl >
<dt ><font face="helvetica, arial" ><a href="AdvancedHTMLParser.xpath.expression.html#XPathExpression" >XPathExpression</a>
</font></dt></dl>
</dd>
</dl>
<p >
<table cellpadding="2" width="100%" border="0" cellspacing="0" summary="section" >
<tr bgcolor="#ffc8d8" >
<td colspan="3" valign="bottom" > <br />
<font color="#000000" face="helvetica, arial" ><a name="XPathExpression" >class <strong >XPathExpression</strong></a>(<a href="__builtin__.html#object" >__builtin__.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8" ><td rowspan="2" ><tt > </tt></td>
<td colspan="2" ><tt ><a href="#XPathExpression" >XPathExpression</a> - The main class for dealing with XPath expressions<br /> </tt></td></tr>
<tr ><td > </td>
<td width="100%" >Methods defined here:<br />
<dl ><dt ><a name="XPathExpression-__init__" ><strong >__init__</strong></a>(self, xpathStr)</dt><dd ><tt >__init__ - Create this <a href="__builtin__.html#object" >object</a> from a string expression<br />
<br />
@param xpathStr <str> - An xpath expression</tt></dd></dl>
<dl ><dt ><a name="XPathExpression-evaluate" ><strong >evaluate</strong></a>(self, pathRoot)</dt><dd ><tt > evaluate - Run this XPath expression against a tree, and return the results.<br />
<br />
@param pathRoot <<br />
curResults = [ pathRoot ]<br />
Tags.AdvancedTag [From a single root tag] -or-<br />
Parser.AdvancedHTMLParser [From the root of a document] -or-<br />
(list/tuple)<Tags.AdvancedTag> [From a list or tuple of tags] -or-<br />
Tags.TagCollecction [From a TagCollection of tags]<br />
> -<br />
Run this XPath expression against this/these given node/nodes/document<br />
<br />
<br />
@return <TagCollection> - A TagCollection of matched tags</tt></dd></dl>
<hr />
Data descriptors defined here:<br />
<dl ><dt ><strong >__dict__</strong></dt>
<dd ><tt >dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl ><dt ><strong >__weakref__</strong></dt>
<dd ><tt >list of weak references to the object (if defined)</tt></dd>
</dl>
</td></tr></table></p></td></tr></table><p >
<table cellpadding="2" width="100%" border="0" cellspacing="0" summary="section" >
<tr bgcolor="#55aa55" >
<td colspan="3" valign="bottom" > <br />
<font color="#ffffff" face="helvetica, arial" ><big ><strong >Data</strong></big></font></td></tr>
<tr ><td bgcolor="#55aa55" ><tt > </tt></td><td > </td>
<td width="100%" ><strong >__all__</strong> = ('XPathExpression',)</td></tr></table>
</p></p></p></body></html>