When scraping, I just want a DOM that is dynamically created by JS, and I don't need an image.
The original story is here.
from selenium.webdriver import PhantomJS
driver = PhantomJS(service_args=['--load-images=no'])
driver.get('http://xxxxxx.xxxxx')
Pass the PhantomJS command line parameters in the contractor.
Recommended Posts