 <p>Since you're on a mac, you can just use the subprocess module to call <code>open http://link1 http://link2 http://link3</code>. For example:</p> <pre><code>from subprocess import call call(["open","http://www.google.com", "http://www.stackoverflow.com"]) </code></pre> <p>Note that this will just open your default browser; however, you could simply replace the <code>open</code> command with the specific browser's command to choose your browser.</p> <p>Here's a full example for files of the general format</p> <pre><code>alink http://anotherlink </code></pre> <p>(etc.)</p> <pre><code>from subprocess import call import re import sys links = [] filename = 'test' try: with open(filename) as linkListFile: for line in linkListFile: link = line.strip() if link != '': if re.match('http://.+|https://.+|ftp://.+|file://.+',link.lower()): links.append(link) else: links.append('http://' + link) except IOError: print 'Failed to open the file "%s".\nExiting.' sys.exit() print links call(["open"]+links) </code></pre>