diff options
author | W. Kosior <koszko@koszko.org> | 2024-12-17 10:58:41 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-12-17 10:58:41 +0100 |
commit | 9d86df32385bf0c3b5ede618d94a7f17754672c4 (patch) | |
tree | da21f1fcbf289c7ab396ff91a9fc9a0dd73f92c9 /scrape_groups_info.py | |
parent | 76b65d9cbcd6ed813e4511a08b45385be3cd8e7e (diff) | |
download | AGH-threat-intel-course-9d86df32385bf0c3b5ede618d94a7f17754672c4.tar.gz AGH-threat-intel-course-9d86df32385bf0c3b5ede618d94a7f17754672c4.zip |
Check for groups not found on mitre.org.
Diffstat (limited to 'scrape_groups_info.py')
-rw-r--r-- | scrape_groups_info.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scrape_groups_info.py b/scrape_groups_info.py index 549f872..c9d28c9 100644 --- a/scrape_groups_info.py +++ b/scrape_groups_info.py @@ -124,4 +124,8 @@ def get_group_names(profiles_path): if __name__ == "__main__": group_names = get_group_names(None if len(sys.argv) < 2 else sys.argv[1]) groups = get_groups(group_names) + missing_group_names = group_names.difference(groups) + if missing_group_names: + print(f"No data found for group(s): {', '.join(sorted(missing_group_names))}", + file=sys.stderr) yaml.safe_dump([group.__dict__ for group in groups.values()], sys.stdout) |