# Disa-Patch-Bot
###### tags: `Script` `Selenium` `Webdriver`
Automates patch downloads from DoD Patch Repository.
## Requirements
- Python 3.4+
- 3.7.4 was used
- Selenium Webdriver
- IE Webdriver
- Win32com (PyWin32)
:::info
Constraint(s):
1. Due to the security restrictions and limitations with Chrome, Firefox, and Edge on the network, Internet Explorer is the only browser that works with the script.
2. Keystrokes and timers are used to automated Window Security Prompt for the CAC credentials. If the prompt takes longer than usual to appear, the script may not work properly.
:::
## Getting Started
### Installation (Windows 10)
#### Python
1. Download the executable installer for Python from [https://www.python.org/downloads/windows/](https://www.python.org/downloads/windows/).
2. Add Python to the Windows Path.
System Properties -> Advance -> Environment Variables
Under System variables, edit path and enter the following paths for Python.
###### Example:
```
C:\..\Python37
C:\..\Python37\Scripts
```
3. Open the command prompt and to check if you can use Python. If you can't, make sure you added the proper paths for Python in your environment variables.
```
python --version
pip --version
```
#### Selenium Webdriver
4. Enter the following on the command prompt:
```
pip install -U selenium
```
#### IE Webdriver
5. Download the lastest standalone server executable from [here](https://selenium-release.storage.googleapis.com/index.html) and placed the executable file in the following path: ```C:\..\Python\Scripts```.
#### Win32com (PyWin32)
6. ```pip install pywin32```
## Usage
7. ```python file-name.py``` or ```python file-name.py -p <password>```
###### Sample Stdout
