I am trying to use selenium / phantomjs with scrapy and I am riddled with errors. For example, take the following code snippet:
def parse(self, resposne): while True: try: driver = webdriver.PhantomJS()
Many times, when the driver seems to be unable to instantiate (therefore, the driver is unbound, hence the exception), and I get the ad unit (along with the print message that I am inserting)
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.phantomjs.service.Service object at 0x7fbb28dc17d0>> ignored
Trying to search, it seems, everything offers to update phantomjs, which I have ( 1.9.8 built from source code). Does anyone know what else could cause this problem and a suitable diagnosis?
source share