diff options
author | Paul McGuire <ptmcg@users.noreply.github.com> | 2018-12-26 16:23:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-26 16:23:09 -0600 |
commit | 95ad65fe6a962cc8ea519abefde85f0bc1f75b7e (patch) | |
tree | 6979d54a5b10eca137dba1be5a1c8791214e4cd1 /examples/urlExtractor.py | |
parent | 86c412dddfd785d16976d08b1c74c1eac466bfcb (diff) | |
parent | c0339eb4af50880a66e6f0d19e3ecb3ce3469696 (diff) | |
download | pyparsing-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.py | 2 |
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
|