summaryrefslogtreecommitdiff
path: root/examples/urlExtractor.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-12-26 16:23:09 -0600
committerGitHub <noreply@github.com>2018-12-26 16:23:09 -0600
commit95ad65fe6a962cc8ea519abefde85f0bc1f75b7e (patch)
tree6979d54a5b10eca137dba1be5a1c8791214e4cd1 /examples/urlExtractor.py
parent86c412dddfd785d16976d08b1c74c1eac466bfcb (diff)
parentc0339eb4af50880a66e6f0d19e3ecb3ce3469696 (diff)
downloadpyparsing-git-95ad65fe6a962cc8ea519abefde85f0bc1f75b7e.tar.gz
Merge pull request #61 from jdufresne/https
Use HTTPS URLs where available in docs, examples, and comments
Diffstat (limited to 'examples/urlExtractor.py')
-rw-r--r--examples/urlExtractor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/urlExtractor.py b/examples/urlExtractor.py
index 58e74ae..dc88608 100644
--- a/examples/urlExtractor.py
+++ b/examples/urlExtractor.py
@@ -14,7 +14,7 @@ linkBody.addParseAction(lambda toks: ' '.join(toks[0].strip().split()))
link = linkOpenTag + linkBody("body") + linkCloseTag.suppress()
# Go get some HTML with some links in it.
-with closing(urllib.request.urlopen("http://www.yahoo.com")) as serverListPage:
+with closing(urllib.request.urlopen("https://www.yahoo.com/")) as serverListPage:
htmlText = serverListPage.read().decode("UTF-8")
# scanString is a generator that loops through the input htmlText, and for each