I have PhantomJS 1.9.0 installed.
I tried the following code to download the page and show the HTML.
from selenium import webdriver
driver = webdriver.PhantomJS(service_args=['--ignore-ssl- errors=true'])
page = driver.get('http://example.com')
print(page.page_source)
I get the following error:
/usr/bin/python3.4 phantom.py
Traceback (most recent call last):
File "phantom.py", line 5, in <module>
print(page.page_source)
AttributeError: 'NoneType' object has no attribute 'page_source'
Clearly it means that driver.get isn't working but the reason?