I started and closed phantomjs in Python using:
from selenium import webdriver
driver = webdriver.PhantomJS()
driver.get(url)
html_doc = driver.page_source
driver.close()
But inspite of that, there is an instance of phantomjs in my MAC Activity Monitor. And everytime, I run the script, a new phantomjs process is created.
How do I close the instance of the driver?