From 30d129ab4a8a4e9d4b863930e00f286468d2e322 Mon Sep 17 00:00:00 2001 From: femtodev Date: Thu, 17 Jul 2025 10:14:12 -0400 Subject: [PATCH] initial commit --- .gitignore | 2 + README.md | 10 + dump.php | 80 + fetch_and_convert.sh | 5 + output.csv | 9258 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 9355 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 dump.php create mode 100755 fetch_and_convert.sh create mode 100644 output.csv diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..292d969 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.txt +*.pdf diff --git a/README.md b/README.md new file mode 100644 index 0000000..c30f4ec --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# ITU Operating Agency Table Parser + +The ITU does not appear to publish a machine-readable list of Operating Agencies (except for the dropdown menus in SpaceCap). + +To assist automatic ingestion of ITU filing data, this PHP script parses a text dump from the ITU-published PDF file +PREFACE_EN.pdf ("PREFACE TO THE BR INTERNATIONAL FREQUENCY INFORMATION CIRCULAR (TERRESTRIAL SERVICES)") +and generates a properly-formatted CSV of every Operating Agency (and its Administration) discovered. + +The script fetch_and_convert.sh will automatically download the latest PREFACE_EN.pdf directly from the ITU website +(this file is updated regularly), then convert it to a CSV. diff --git a/dump.php b/dump.php new file mode 100644 index 0000000..69af1b1 --- /dev/null +++ b/dump.php @@ -0,0 +1,80 @@ +