# Find Amazon Unlimited Missing Files from S3

## To Set Up

* Run the commands below

```bash
$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt
$ cp .env.shadow .env
```

* Add your AWS credentials to `.env`
* Add the `.env` items to your path: `source .env`

## To Use

* Add dates by month to the array `DATE_RANGES` in `amazon_missing_files.py`.
* Update `DATE_THRESHOLD` in `amazon_missing_files.py` to check stale/old files.
* Run `python amazon_missing_files.py`
* Profit with the files `manifest.txt`, `missing_files.txt`, and `stale_manifest.txt` in the root dir.

## To Clean Up

* After each run files must be cleaned up. Run `rm manifest.txt missing_files.txt stale_manifest.txt`.
