Open URLs on chrome
<p>I have a .csv file that contains a column of urls (40-50 urls), I want to read the csv file and open all those urls on chrome? Is there a way to accomplish this in python?  I'm using the following piece of code to read the csv file.</p>

<pre><code>exampleFile = open('MyFile.csv')
exampleReader = csv.reader(exampleFile)
exampleData = list(exampleReader)
final = []
for item in exampleData:
    final.append(item[0])
for item in final:
    ???
</code></pre>

<p>You can use selenium. First install selenium by <code>pip install selenium</code>. The following code open <a href="http://www.python.org" rel="nofollow">http://www.python.org</a> in mozilla firefox.You can change driver to chrome driver in selenium to open links in chrome. For chrome you can see <a href="http://stackoverflow.com/questions/13724778/how-to-run-selenium-webdriver-test-cases-in-chrome">How to run Selenium WebDriver test cases in Chrome?</a></p>

<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()
driver.get("http://www.python.org")
</code></pre>

python