Selenium webdriver未正确关闭资源导致爬虫卡住
由于我在写selenium爬虫代码时,关闭页面使用的driver.close()
查过资料 得知driver.close()
指的是仅关闭页面 ,因此这里应该使用driver.quit() 这个方法不但会关闭所有页面,还会释放webdriver资源
Selenium webdriver未正确关闭资源导致爬虫卡住
由于我在写selenium爬虫代码时,关闭页面使用的driver.close()
查过资料 得知driver.close()
指的是仅关闭页面 ,因此这里应该使用driver.quit() 这个方法不但会关闭所有页面,还会释放webdriver资源