Install phantomjs by entering the following commands in the terminal:
sudo apt update sudo apt install phantomjs
Description:
minimalistic headless WebKit-based browser with JavaScript API
PhantomJS is a headless WebKit with JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG. . PhantomJS is an optimal solution for headless testing of web-based applications, site scraping, pages capture, SVG renderer, PDF converter and many other use cases.
Homepage: http://www.phantomjs.org/
Version: 2.1.1+dfsg-2
Section: universe/web