PhantomJS 1.8 with Selenium on python. How to block images?

前端 未结 2 770
不知归路
不知归路 2021-02-20 00:57

Is there a way to configure PhantomJS webdriver on Selenium to do not load images? I know if I use phantomjs directly, I can start it with --load-images=no and it w

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 01:05

    Why are you not trying webdriver.PhantomJS(service_args=['--load-images=no']) ?

提交回复
热议问题