summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 21:39:05 +0530
committerHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 21:39:05 +0530
commitf210a54057669aa57b042372fe6604d5cbde9cd6 (patch)
tree1107026b7e209cff470ec353e53f22c5525650f8 /scripts
parent9cd786691a12a4db3da3ba02e2c2772ca348966e (diff)
downloadpsutil-f210a54057669aa57b042372fe6604d5cbde9cd6.tar.gz
add description for requests
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/internal/check_broken_links.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/internal/check_broken_links.py b/scripts/internal/check_broken_links.py
index 7a5b6983..d22192bc 100755
--- a/scripts/internal/check_broken_links.py
+++ b/scripts/internal/check_broken_links.py
@@ -20,6 +20,7 @@ Method:
* Remove duplicates (because regex is not 100% efficient as of now).
* Check validity of URL, using HEAD request. (HEAD to save bandwidth)
Uses requests module for others are painful to use. REFERENCES[9]
+ Handles redirects, http, https, ftp as well.
REFERENCES:
Using [1] with some modificatons for including ftp
@@ -44,7 +45,6 @@ import requests
HERE = os.path.abspath(os.path.dirname(__file__))
-print (HERE)
URL_REGEX = '(?:http|ftp|https)?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'