A Python tool to convert website URLs into images by rendering the DOM HTML data.
This tool requires ChromeDriver to interact with the Chrome browser. Follow the steps below to download and install ChromeDriver:
- Visit the ChromeDriver download page.
- Choose the version of ChromeDriver that matches the version of your installed Chrome browser.
- Download the appropriate ChromeDriver for your system (Windows, MacOS, or Linux).
- Unzip the downloaded file to retrieve the
chromedriver
executable. - Move the
chromedriver
executable to/usr/local/bin
using the command:mv chromedriver /usr/local/bin
After downloading and moving ChromeDriver, you can use it in your code without specifying its location:
from selenium import webdriver
driver = webdriver.Chrome()
You can run the script from the command line using the following format:
python main.py --urls url1,url2,...,urln --levels 1 2 ... n
For example:
python main.py --urls http://localhost:8888,http://localhost:8880,http://localhost:8889 --levels 1 2 3
python3 main.py --urls https://nvd.nist.gov/vuln/detail/CVE-2020-14624,https://nvd.nist.gov/vuln/detail/CVE-2018-5032,http://jvn.jp/en/jp/JVN41119755/index.html,http://jvn.jp/en/jp/JVN33214411/index.html,https://www.kb.cert.org/vuls/id/366027,https://www.kb.cert.org/vuls/id/229438 --levels 1