[Python] User Warning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead

When I try to scrape, I get the error ʻUserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead`

Cause

It seems that this warning message will appear because PhantomJS has suspended development.

Countermeasures

As per the warning message, use ** Chrome ** or ** Firefox ** headless mode instead of PhantomJS.

reference https://techacademy.jp/magazine/21493

Recommended Posts

[Python] User Warning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
Use data class for data storage of Python 3.7 or higher