diff options
Diffstat (limited to 'src/examples/urlExtractorNew.py')
-rw-r--r-- | src/examples/urlExtractorNew.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/urlExtractorNew.py b/src/examples/urlExtractorNew.py index 0569b6c..0aac875 100644 --- a/src/examples/urlExtractorNew.py +++ b/src/examples/urlExtractorNew.py @@ -12,7 +12,7 @@ import pprint # that it is not necessary to explicitly show this in the pyparsing grammar; by default,
# pyparsing skips over whitespace between tokens.
linkOpenTag,linkCloseTag = makeHTMLTags("a")
-link = linkOpenTag + SkipTo(linkCloseTag).setResultsName("body") + linkCloseTag.suppress()
+link = linkOpenTag + SkipTo(linkCloseTag)("body") + linkCloseTag.suppress()
# Go get some HTML with some links in it.
serverListPage = urllib.request.urlopen( "http://www.google.com" )
|