Metadata-Version: 2.1
Name: ssl-labs-screenshot
Version: 1.0.2
Summary: A script to capture SSL Labs server test report screenshots
Home-page: https://github.com/marksowell/ssl-labs-screenshot
Author: Mark Sowell
Author-email: mark@marksowell.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# SSL Labs Screenshot
This is a Python script that captures a trimmed screenshot of the SSL Labs report for a given domain, using the Selenium WebDriver and the Pillow image library.

<p align="center"><img src="images/www.ssllabs.com_report.png" width="300px" />

## Requirements
- Python 3.x
- Chrome browser (version 89 or later)
- ChromeDriver

## Installation
1. Clone this repository:   
```git clone https://github.com/marksowell/SSL-Labs-Screenshot.git```
2. Install the required libraries by running the following command:  
```pip install -r requirements.txt```
3. Download the latest version of ChromeDriver from the following link: https://sites.google.com/chromium.org/driver/downloads
4. Extract the contents of the downloaded ZIP file to a directory on your system.
5. Either move the ChromeDriver executable to a directory already in your system's `PATH` environment variable or add the path to the directory where you extracted the ChromeDriver executable to the `PATH` variable.

## Usage
Run the script with the following command:  
```python ssl-labs-screenshot.py domain.com```  

Replace domain.com with the domain you want to test. The script will open a headless Chrome browser and load the SSL Labs report for the domain. It will capture a temporary screenshot of the report and save it as a PNG file in the same directory as the script, with the name domain_report_tmp.png. The script will delete the temporary screenshot after the trimmed image is created with the name domain_report.png

## Limitations
The script only captures the first server's report for domains with multiple servers.

## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)
