I started and closed phantomjs in Python using:
from selenium import webdriver
driver = webdriver.PhantomJS()
html_doc = driver.page_source
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?