Commits
Pam Ford authored ca1a44f8969 Merge
6 6 | import urllib2 |
7 7 | from HTMLParser import HTMLParser |
8 8 | from subprocess import check_output |
9 9 | import platform |
10 10 | |
11 11 | |
12 12 | # Supported operating system versions |
13 13 | osVersions = ["el6", "el7", "osx1011", "osx1012"] |
14 14 | script_dir = os.path.dirname(os.path.realpath(__file__)) |
15 15 | |
16 + | |
16 17 | class MyHTMLParser(HTMLParser): |
17 18 | |
18 19 | links = [] |
19 20 | |
20 21 | def handle_starttag(self, tag, attrs): |
21 22 | # Only parse the 'anchor' tag. |
22 23 | if tag == "a": |
23 24 | # Check the list of defined attributes. |
24 25 | for name, value in attrs: |
25 26 | # If href is defined, print it. |