Commits
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 - | |
17 16 | class MyHTMLParser(HTMLParser): |
18 17 | |
19 18 | links = [] |
20 19 | |
21 20 | def handle_starttag(self, tag, attrs): |
22 21 | # Only parse the 'anchor' tag. |
23 22 | if tag == "a": |
24 23 | # Check the list of defined attributes. |
25 24 | for name, value in attrs: |
26 25 | # If href is defined, print it. |