From 325a4488d0d19d9f58a727abf200adaf93d6c6db Mon Sep 17 00:00:00 2001 From: alex-cantor Date: Thu, 26 Mar 2026 22:35:05 -0500 Subject: [PATCH] Fixed dependency deprecation and updated .gitignore - Replaced deprecated `datetime.utcnow()` with `datetime.now(UTC)` - Updated `.gitignore` to exclude `.vscode` and `venv` folders --- .gitignore | 2 ++ OopsKey.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a2468cd..0fefdbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ audit_report.json +.vscode/ +venv/ diff --git a/OopsKey.py b/OopsKey.py index a59dc12..214296b 100644 --- a/OopsKey.py +++ b/OopsKey.py @@ -30,7 +30,7 @@ import requests from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup -from datetime import datetime +from datetime import datetime, UTC from dataclasses import dataclass from typing import Optional, List, Dict, Set, Tuple from concurrent.futures import ThreadPoolExecutor, as_completed @@ -920,7 +920,7 @@ def main(): "tool": "gapi_full_audit_v4", "authorized_use_only": True, "mode": "single_key", - "timestamp": datetime.utcnow().isoformat(), + "timestamp": datetime.now(UTC).isoformat(), "static_validation": sv_msg, "validation": result, } @@ -976,7 +976,7 @@ def main(): "tool": "gapi_full_audit_v4", "authorized_use_only": True, "mode": "web_scan", - "timestamp": datetime.utcnow().isoformat(), + "timestamp": datetime.now(UTC).isoformat(), "target_url": args.url, "crawl_depth": args.depth, "js_recursion_depth": JS_RECURSION_DEPTH,